Browse Source

Check TERMINAL_SUPPORT for _rpnInitCommands and remove unused variable

rules-rpn
Xose Pérez 5 years ago
parent
commit
f8e1623f01
2 changed files with 6 additions and 3 deletions
  1. +0
    -1
      code/espurna/light.ino
  2. +6
    -2
      code/espurna/rpnrules.ino

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

@ -105,7 +105,6 @@ void _setRGBInputValue(unsigned char red, unsigned char green, unsigned char blu
void _generateBrightness() {
unsigned char value;
double brightness = (double) _light_brightness / LIGHT_MAX_BRIGHTNESS;
// Convert RGB to RGBW(W)


+ 6
- 2
code/espurna/rpnrules.ino View File

@ -288,7 +288,11 @@ void rpnSetup() {
// Load & cache settings
_rpnConfigure();
_rpnInitCommands();
// Terminal commands
#if TERMINAL_SUPPORT
_rpnInitCommands();
#endif
// Websockets
#if WEB_SUPPORT
@ -307,4 +311,4 @@ void rpnSetup() {
}
#endif
#endif // RPN_RULES_SUPPORT

Loading…
Cancel
Save