Ver código fonte

add backkey timeout return

zack 1 ano atrás
pai
commit
608618722a
2 arquivos alterados com 2854 adições e 2853 exclusões
  1. 4 3
      Core/Src/key.c
  2. 2850 2850
      Output/dtu.hex

+ 4 - 3
Core/Src/key.c

@@ -156,7 +156,7 @@ uint8_t KEY_2_Scan(void)
     }
     else
     {
-        if (HAL_GetTick() - debounce_time > 30) // 去抖时间大于30ms
+        if (HAL_GetTick() - debounce_time > 30) // 去抖时间
         {
             if (key_state == GPIO_PIN_RESET) // 按键按下
             {
@@ -279,7 +279,7 @@ uint8_t KEY_3_Scan(void)
     }
     else
     {
-        if (HAL_GetTick() - debounce_time > 30) // 去抖时间大于50ms
+        if (HAL_GetTick() - debounce_time > 30) // 去抖时间
         {
             if (key_state == GPIO_PIN_RESET) // 按键按下
             {
@@ -928,10 +928,11 @@ uint8_t KEY_4_Scan(void)
     }
     else
     {
-        if (HAL_GetTick() - debounce_time > 30) // 去抖时间大于50ms
+        if (HAL_GetTick() - debounce_time > 30) // 去抖时间
         {
             if (key_state == GPIO_PIN_RESET) // 按键按下
             {
+				enterInterface_time = HAL_GetTick();
 				if (!sent4_key) {//返回
 					switch (menu.current) {
 						case 0:

Diferenças do arquivo suprimidas por serem muito extensas
+ 2850 - 2850
Output/dtu.hex