testing 4Hz issue
This commit is contained in:
parent
f3990566d2
commit
f1246de693
|
|
@ -410,12 +410,17 @@ void batt_read(){
|
||||||
|
|
||||||
void writedisplaytext(String HeaderTxt, String Line1, String Line2, String Line3, String Line4, String Line5) {
|
void writedisplaytext(String HeaderTxt, String Line1, String Line2, String Line3, String Line4, String Line5) {
|
||||||
batt_read();
|
batt_read();
|
||||||
if (BattVolts < 3.5 && BattVolts > 3.2){
|
if (BattVolts < 3.5 && BattVolts > 3.3){
|
||||||
#ifdef T_BEAM_V1_0
|
#ifdef T_BEAM_V1_0
|
||||||
# ifdef ENABLE_LED_SIGNALING
|
# ifdef ENABLE_LED_SIGNALING
|
||||||
axp.setChgLEDMode(AXP20X_LED_BLINK_4HZ);
|
axp.setChgLEDMode(AXP20X_LED_BLINK_4HZ);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
}else if(BattVolts <= 3.3){
|
||||||
|
#ifdef T_BEAM_V1_0
|
||||||
|
axp.setChgLEDMode(AXP20X_LED_OFF);
|
||||||
|
axp.shutdown();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
display.clearDisplay();
|
display.clearDisplay();
|
||||||
display.setTextColor(WHITE);
|
display.setTextColor(WHITE);
|
||||||
|
|
@ -1086,6 +1091,7 @@ void loop() {
|
||||||
|
|
||||||
if(shutdown_countdown_timer_enable){
|
if(shutdown_countdown_timer_enable){
|
||||||
if(millis() >= shutdown_countdown_timer){
|
if(millis() >= shutdown_countdown_timer){
|
||||||
|
axp.setChgLEDMode(AXP20X_LED_OFF);
|
||||||
axp.shutdown();
|
axp.shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue