From 72b8f0d1e62e3cc4896c91d2b9140e280dc55134 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 19 Jun 2021 13:46:10 +0200 Subject: [PATCH] Add some warnings in lcd_buttons_update --- Firmware/lcd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/lcd.cpp b/Firmware/lcd.cpp index a52bdd3e8..37b70f1a1 100644 --- a/Firmware/lcd.cpp +++ b/Firmware/lcd.cpp @@ -730,6 +730,8 @@ void lcd_update_enable(uint8_t enabled) bool lcd_longpress_trigger = 0; +// WARNING: this function is called from the temperature ISR. +// Only update flags, but do not perform any menu/lcd operation! void lcd_buttons_update(void) { static uint8_t lcd_long_press_active = 0;