diff --git a/code/espurna/libs/pwm.h b/code/espurna/libs/pwm.h index bf5605fb..1f26a1af 100755 --- a/code/espurna/libs/pwm.h +++ b/code/espurna/libs/pwm.h @@ -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; diff --git a/code/espurna/light.ino b/code/espurna/light.ino index 3200fcd2..7565f959 100644 --- a/code/espurna/light.ino +++ b/code/espurna/light.ino @@ -13,7 +13,6 @@ Copyright (C) 2016-2017 by Xose PĂ©rez #include #if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER -#define PWM_CHANNEL_NUM_MAX LIGHT_CHANNELS extern "C" { #include "libs/pwm.h" } diff --git a/code/espurna/pwm.c b/code/espurna/pwm.c index 9a316bb8..b31c2423 100644 --- a/code/espurna/pwm.c +++ b/code/espurna/pwm.c @@ -43,7 +43,7 @@ #endif #include -#include +#include #include #include