fix cardputer display/keyboard glitch

This commit is contained in:
Noah Axon 2024-01-08 22:18:30 -06:00
parent cff2f4ff1f
commit cc8e610d20
1 changed files with 0 additions and 4 deletions

View File

@ -354,7 +354,6 @@ void mmenu_loop() {
} }
} }
//Screen dimming needs both AXP and RTC features
bool screen_dim_dimmed = false; bool screen_dim_dimmed = false;
int screen_dim_time = 30; int screen_dim_time = 30;
int screen_dim_current = 0; int screen_dim_current = 0;
@ -382,9 +381,6 @@ void dimtimer(){
void screen_dim_proc() { void screen_dim_proc() {
if(screen_dim_time > 0){ if(screen_dim_time > 0){
check_menu_press();
check_next_press();
check_select_press();
if (screen_dim_dimmed == false) { if (screen_dim_dimmed == false) {
if (uptime() == screen_dim_current || (uptime() + 1) == screen_dim_current || (uptime() + 2) == screen_dim_current) { if (uptime() == screen_dim_current || (uptime() + 1) == screen_dim_current || (uptime() + 2) == screen_dim_current) {
screenBrightness(10); screenBrightness(10);