]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
use wait_ms instead of _delay_ms
authorPavlos Vinieratos <pvinis@gmail.com>
Thu, 22 Sep 2016 09:38:17 +0000 (11:38 +0200)
committerPavlos Vinieratos <pvinis@gmail.com>
Tue, 11 Oct 2016 08:34:47 +0000 (10:34 +0200)
keyboards/ergodox/keymaps/pvinis/keymap.c

index 8e161145436e6a204a5357708dd4c0a999c45327..df906201a8869321bb80e65f235a670d31bbaad6 100644 (file)
@@ -331,12 +331,12 @@ void matrix_init_user() {
   ergodox_led_all_on();
   for (int i = LED_BRIGHTNESS_HI; i > LED_BRIGHTNESS_LO; i--) {
     ergodox_led_all_set(i);
-    _delay_ms(5);
+    wait_ms(5);
   }
-  _delay_ms(1000);
+  wait_ms(1000);
   for (int i = LED_BRIGHTNESS_LO; i > 0; i--) {
     ergodox_led_all_set(i);
-    _delay_ms(10);
+    wait_ms(10);
   }
   ergodox_led_all_off();
 }
@@ -402,9 +402,9 @@ void flash_each_tap(qk_tap_dance_state_t *state, void *user_data) {
     break;
   case 4:
     ergodox_right_led_3_off();
-    _delay_ms(50);
+    wait_ms(50);
     ergodox_right_led_2_off();
-    _delay_ms(50);
+    wait_ms(50);
     ergodox_right_led_1_off();
     break;
   }
@@ -419,9 +419,9 @@ void flash_dance_finished(qk_tap_dance_state_t *state, void *user_data) {
 
 void flash_dance_reset(qk_tap_dance_state_t *state, void *user_data) {
   ergodox_right_led_1_off();
-  _delay_ms(50);
+  wait_ms(50);
   ergodox_right_led_2_off();
-  _delay_ms(50);
+  wait_ms(50);
   ergodox_right_led_3_off();
 }