Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
changed furi_kernel_lock() to FURI_CRITICAL_ENTER() in SK6805
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxSam committed Feb 23, 2024
1 parent a7cab5f commit 97c531f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/drivers/SK6805.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -100,5 +100,5 @@ void SK6805_update() {
}
}
}
furi_kernel_unlock();
FURI_CRITICAL_EXIT();
}

0 comments on commit 97c531f

Please sign in to comment.