aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox
diff options
context:
space:
mode:
authorPavlos Vinieratos <pvinis@gmail.com>2016-09-22 11:38:17 +0200
committerPavlos Vinieratos <pvinis@gmail.com>2016-10-11 10:34:47 +0200
commit538cdda78ec2e79a965205d0df974dfa5855c68e (patch)
treeb653b94281932d5f201345f771cc7d2105e99f19 /keyboards/ergodox
parentbcc0fa5c81e2a1725379c86b095bd627fb89d29d (diff)
downloadfirmware-538cdda78ec2e79a965205d0df974dfa5855c68e.tar.gz
firmware-538cdda78ec2e79a965205d0df974dfa5855c68e.tar.bz2
firmware-538cdda78ec2e79a965205d0df974dfa5855c68e.zip
use wait_ms instead of _delay_ms
Diffstat (limited to 'keyboards/ergodox')
-rw-r--r--keyboards/ergodox/keymaps/pvinis/keymap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboards/ergodox/keymaps/pvinis/keymap.c b/keyboards/ergodox/keymaps/pvinis/keymap.c
index 8e1611454..df906201a 100644
--- a/keyboards/ergodox/keymaps/pvinis/keymap.c
+++ b/keyboards/ergodox/keymaps/pvinis/keymap.c
@@ -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();
}