changed furi_kernel_lock() to FURI_CRITICAL_ENTER() in SK6805

This commit is contained in:
HaxSam
2024-02-24 00:59:18 +01:00
parent a7cab5f47a
commit 97c531f3fb

View File

@@ -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();
}