kopia lustrzana https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS
testing 4Hz issue
rodzic
f3990566d2
commit
f1246de693
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue