mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2024-12-26 07:59:40 -05:00
Fixed display sleep on T3S3
This commit is contained in:
parent
d7511d430e
commit
5807cfdb96
26
Display.h
26
Display.h
@ -692,18 +692,22 @@ void update_disp_area() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void update_display(bool blank = false) {
|
void update_display(bool blank = false) {
|
||||||
if (display_blanking_enabled && millis()-last_unblank_event >= display_blanking_timeout) {
|
if (blank == true) {
|
||||||
blank = true;
|
last_disp_update = millis()-disp_update_interval-1;
|
||||||
display_blanked = true;
|
|
||||||
if (display_intensity != 0) {
|
|
||||||
display_unblank_intensity = display_intensity;
|
|
||||||
}
|
|
||||||
display_intensity = 0;
|
|
||||||
} else {
|
} else {
|
||||||
display_blanked = false;
|
if (display_blanking_enabled && millis()-last_unblank_event >= display_blanking_timeout) {
|
||||||
if (display_unblank_intensity != 0x00) {
|
blank = true;
|
||||||
display_intensity = display_unblank_intensity;
|
display_blanked = true;
|
||||||
display_unblank_intensity = 0x00;
|
if (display_intensity != 0) {
|
||||||
|
display_unblank_intensity = display_intensity;
|
||||||
|
}
|
||||||
|
display_intensity = 0;
|
||||||
|
} else {
|
||||||
|
display_blanked = false;
|
||||||
|
if (display_unblank_intensity != 0x00) {
|
||||||
|
display_intensity = display_unblank_intensity;
|
||||||
|
display_unblank_intensity = 0x00;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user