From f1246de693b2f5d51c4e035f152acafcdbe3eca2 Mon Sep 17 00:00:00 2001 From: Rysiek Labus Date: Mon, 20 Sep 2021 21:03:59 +0200 Subject: [PATCH] testing 4Hz issue --- src/TTGO_T-Beam_LoRa_APRS.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 5f92b5d..4ab4d03 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -410,12 +410,17 @@ void batt_read(){ void writedisplaytext(String HeaderTxt, String Line1, String Line2, String Line3, String Line4, String Line5) { batt_read(); - if (BattVolts < 3.5 && BattVolts > 3.2){ + if (BattVolts < 3.5 && BattVolts > 3.3){ #ifdef T_BEAM_V1_0 # ifdef ENABLE_LED_SIGNALING axp.setChgLEDMode(AXP20X_LED_BLINK_4HZ); #endif #endif + }else if(BattVolts <= 3.3){ + #ifdef T_BEAM_V1_0 + axp.setChgLEDMode(AXP20X_LED_OFF); + axp.shutdown(); + #endif } display.clearDisplay(); display.setTextColor(WHITE); @@ -1086,6 +1091,7 @@ void loop() { if(shutdown_countdown_timer_enable){ if(millis() >= shutdown_countdown_timer){ + axp.setChgLEDMode(AXP20X_LED_OFF); axp.shutdown(); } }