From 60138b0b44c06d4133c518f1a337bf7ed1d33106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 8 Nov 2017 09:00:43 +0100 Subject: [PATCH] Using NMI timer for PWM, avoids flickering --- code/espurna/config/general.h | 2 +- code/espurna/pwm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 07627e02..d43e32e7 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -731,7 +731,7 @@ PROGMEM const char* const custom_reset_string[] = { // 24 Buttons Set of the IR Remote #ifndef IR_BUTTON_SET -#define IR_BUTTON_SET 1 +#define IR_BUTTON_SET 1 // IR button set to use (see below) #endif // IR Button modes diff --git a/code/espurna/pwm.c b/code/espurna/pwm.c index 5b5f306b..9a316bb8 100644 --- a/code/espurna/pwm.c +++ b/code/espurna/pwm.c @@ -25,7 +25,7 @@ #define PWM_MAX_CHANNELS 8 #endif #define PWM_DEBUG 0 -#define PWM_USE_NMI 0 +#define PWM_USE_NMI 1 /* no user servicable parts beyond this point */