Browse Source

Fix uninitialized muxes for dimmer lights (#356)

i18n
Xose Pérez 7 years ago
parent
commit
d3edf9e7cd
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      code/espurna/libs/pwm.h
  2. +1
    -0
      code/espurna/light.ino

+ 1
- 1
code/espurna/libs/pwm.h View File

@ -9,7 +9,7 @@
/*NOTE!! : DO NOT CHANGE THIS FILE*/
/*SUPPORT UP TO 8 PWM CHANNEL*/
#define PWM_CHANNEL_NUM_MAX 8
//#define PWM_CHANNEL_NUM_MAX 8
struct pwm_param {
uint32 period;


+ 1
- 0
code/espurna/light.ino View File

@ -13,6 +13,7 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com>
#include <vector>
#if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER
#define PWM_CHANNEL_NUM_MAX LIGHT_CHANNELS
extern "C" {
#include "libs/pwm.h"
}


Loading…
Cancel
Save