Inverted status LED on behaviour

This commit is contained in:
Kai Lauterbach 2022-11-10 13:49:50 +01:00
parent 0a08e8d974
commit a009a19261

View file

@ -84,7 +84,7 @@ void setup()
pinMode(ANEMOMETER_PIN, INPUT_PULLUP); pinMode(ANEMOMETER_PIN, INPUT_PULLUP);
pinMode(A0, INPUT); pinMode(A0, INPUT);
digitalWrite(STATUS_LED_PIN, LOW); digitalWrite(STATUS_LED_PIN, HIGH);
#ifndef BAT_PINS_D34 #ifndef BAT_PINS_D34
debug("D5 D6 used as battery pins"); debug("D5 D6 used as battery pins");
@ -111,7 +111,7 @@ void setup()
_battery_mode_main(); _battery_mode_main();
digitalWrite(STATUS_LED_PIN, LOW); digitalWrite(STATUS_LED_PIN, HIGH);
criticalBatCheck(); criticalBatCheck();
@ -607,7 +607,7 @@ void _fsm_loop()
if (currentSensorData[SENSOR_WINDSPEED] >= HTTP_CALL_ON_WINDSPEED_EXCEED_MPS) if (currentSensorData[SENSOR_WINDSPEED] >= HTTP_CALL_ON_WINDSPEED_EXCEED_MPS)
{ {
// windspeed exceeded send http call // windspeed exceeded send http call
digitalWrite(STATUS_LED_PIN, HIGH); digitalWrite(STATUS_LED_PIN, LOW);
// call the url HTTP_CALL_ON_WINDSPEED_URL // call the url HTTP_CALL_ON_WINDSPEED_URL
WiFiClient client; WiFiClient client;
@ -626,7 +626,7 @@ void _fsm_loop()
http.end(); http.end();
debug("Called windspeed exceed callout"); debug("Called windspeed exceed callout");
digitalWrite(STATUS_LED_PIN, LOW); digitalWrite(STATUS_LED_PIN, HIGH);
} }
#ifdef WEBUPDATER_FEATURE #ifdef WEBUPDATER_FEATURE