Skip to content

Commit

Permalink
Fix initialization order in setup() function
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed Jan 29, 2024
1 parent 27c45a4 commit d81f83d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CO2_Gadget.ino
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,9 @@ void setup() {
#ifdef SUPPORT_BLE
initBLE();
#endif
initWifi();
initSensors();
initWifi();
wifiChanged = false;
#ifdef SUPPORT_ESPNOW
initESPNow();
#endif
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ build_flags =
-D MQTT_BROKER_SERVER="\"192.168.1.145"\"
-D CO2_GADGET_VERSION="\"0.8."\"

-D CO2_GADGET_REV="\"089-development"\"
-D CO2_GADGET_REV="\"090-development"\"
-D CORE_DEBUG_LEVEL=0
-DNEOPIXEL_PIN=26 ; Pinnumber for button for down/next and back / exit actions
-DNEOPIXEL_COUNT=16 ; How many neopixels to control
Expand Down

0 comments on commit d81f83d

Please sign in to comment.