Skip to content

Commit

Permalink
[Core] remove busy waiting from rgblight functions (qmk#18418)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlK90 authored and ramonimbao committed Nov 28, 2022
1 parent 847ecd8 commit 651905e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions quantum/rgblight/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "wait.h"
#include "progmem.h"
#include "sync_timer.h"
#include "rgblight.h"
Expand Down Expand Up @@ -410,7 +409,6 @@ void rgblight_disable(void) {
dprintf("rgblight disable [EEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
rgblight_timer_disable();
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
wait_ms(50);
rgblight_set();
}

Expand All @@ -419,7 +417,6 @@ void rgblight_disable_noeeprom(void) {
dprintf("rgblight disable [NOEEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
rgblight_timer_disable();
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
wait_ms(50);
rgblight_set();
}

Expand Down Expand Up @@ -704,7 +701,6 @@ void rgblight_setrgb_range(uint8_t r, uint8_t g, uint8_t b, uint8_t start, uint8
#endif
}
rgblight_set();
wait_ms(1);
}

void rgblight_sethsv_range(uint8_t hue, uint8_t sat, uint8_t val, uint8_t start, uint8_t end) {
Expand Down

0 comments on commit 651905e

Please sign in to comment.