main/task_user.c

changeset 78
e03d729aecb8
parent 77
15dc572a7fcb
child 80
715785443a95
--- a/main/task_user.c	Tue Oct 03 17:24:06 2023 +0200
+++ b/main/task_user.c	Tue Oct 03 19:43:22 2023 +0200
@@ -12,7 +12,7 @@
 esp_timer_handle_t			timerHandle;			///< Seconds timer
 uint32_t				SecsCount = 0;			///< Seconds counter
 uint32_t				UserTimer = 0;                  ///< User inactive timeout
-uint32_t				AlarmTimer = 0;			///< Alarm timer
+uint32_t				LoopTimer = 0;			///< Alarm timer
 int					Main_Loop2 = -1;		///< Effective menu
 int					New_Loop2 = ML2_INIT;		///< New menu
 int					SubMenu = 0;			///< Submenu number
@@ -83,14 +83,13 @@
 	UserTimer--;
     }
 
-    if (AlarmTimer == 1) {
+    if (LoopTimer == 1) {
 	ESP_LOGI(TAG, "Alarm Timer timeout");
 	Main_Loop1 = ML1_INIT;
-	err_alarm++;
     }
 
-    if (AlarmTimer) {
-	AlarmTimer--;
+    if (LoopTimer) {
+	LoopTimer--;
     }
 }
 

mercurial