mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
changed furi_kernel_lock() to FURI_CRITICAL_ENTER() in SK6805
This commit is contained in:
@@ -60,7 +60,7 @@ void SK6805_set_led_color(uint8_t led_index, uint8_t r, uint8_t g, uint8_t b) {
|
||||
void SK6805_update() {
|
||||
FURI_LOG_T(TAG, "update");
|
||||
SK6805_init();
|
||||
furi_kernel_lock();
|
||||
FURI_CRITICAL_ENTER();
|
||||
uint32_t end;
|
||||
// Sequential sending LEDs
|
||||
for(uint8_t lednumber = 0; lednumber < SK6805_LED_COUNT; lednumber++) {
|
||||
@@ -100,5 +100,5 @@ void SK6805_update() {
|
||||
}
|
||||
}
|
||||
}
|
||||
furi_kernel_unlock();
|
||||
FURI_CRITICAL_EXIT();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user