From 8eb1390118543b5b01f2a5a24e886a96e4c010f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 29 Dec 2017 23:21:46 +0100 Subject: [PATCH] Fix references to pwm.h --- code/espurna/libs/pwm.h | 2 +- code/espurna/light.ino | 1 - code/espurna/pwm.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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