This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Check TERMINAL_SUPPORT for _rpnInitCommands and remove unused variable
rules-rpn
Xose Pérez
5 years ago
parent
d765397bd9
commit
f8e1623f01
2 changed files
with
6 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
code/espurna/light.ino
+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
Write
Preview
Loading…
Cancel
Save