Explorar el Código

Fix compilation error for `tap_code_delay()` (#11938)

Ryan hace 5 años
padre
commit
be70f466fe
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      tmk_core/common/action.c

+ 3 - 1
tmk_core/common/action.c

@@ -947,7 +947,9 @@ void unregister_code(uint8_t code) {
  */
  */
 void tap_code_delay(uint8_t code, uint16_t delay) {
 void tap_code_delay(uint8_t code, uint16_t delay) {
     register_code(code);
     register_code(code);
-    wait_ms(delay);
+    for (uint16_t i = delay; i > 0; i--) {
+        wait_ms(1);
+    }
     unregister_code(code);
     unregister_code(code);
 }
 }