Skip to content

Commit

Permalink
drivers/wx281x: fix DEBUG format string for ESP32-C3
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jul 20, 2022
1 parent 0ddb602 commit 132afe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/ws281x/esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ void ws281x_write_buffer(ws281x_t *dev, const void *buf, size_t size)
zero_on = freq / (NS_PER_SEC / WS281X_T_DATA_ZERO_NS);
zero_off = total_cycles - zero_on;

DEBUG("[ws281x] esp32 freq=%d total=%d\n", freq, total_cycles);
DEBUG("[ws281x] esp32 cycles %d/%d/%d/%d\n", one_on, one_off, zero_on, zero_off);
DEBUG("[ws281x] esp32 freq=%d total=%"PRIu32"\n", freq, total_cycles);
DEBUG("[ws281x] esp32 cycles %"PRIu32"/%"PRIu32"/%"PRIu32"/%"PRIu32"\n",
one_on, one_off, zero_on, zero_off);

uint32_t current_wait = 0, start = 0;

Expand Down

0 comments on commit 132afe3

Please sign in to comment.