Browse Source

rpn: $relayX variables were not populated on boot (#2246)

mcspr-patch-1
pezinek 4 years ago
committed by GitHub
parent
commit
d5dc1e029c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      code/espurna/main.cpp

+ 4
- 3
code/espurna/main.cpp View File

@ -192,6 +192,10 @@ void setup() {
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
lightSetup(); lightSetup();
#endif #endif
// rpnSetup must be called before relaySetup
#if RPN_RULES_SUPPORT
rpnSetup();
#endif
#if RELAY_SUPPORT #if RELAY_SUPPORT
relaySetup(); relaySetup();
#endif #endif
@ -262,9 +266,6 @@ void setup() {
#if SCHEDULER_SUPPORT #if SCHEDULER_SUPPORT
schSetup(); schSetup();
#endif #endif
#if RPN_RULES_SUPPORT
rpnSetup();
#endif
#if UART_MQTT_SUPPORT #if UART_MQTT_SUPPORT
uartmqttSetup(); uartmqttSetup();
#endif #endif


Loading…
Cancel
Save