Skip to content

Commit

Permalink
Fix uninitialized muxes for dimmer lights (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Jan 2, 2018
1 parent cf39b71 commit d3edf9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/libs/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions code/espurna/light.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit d3edf9e

Please sign in to comment.