Skip to content

Commit

Permalink
Merge pull request RIOT-OS#18336 from gschorcht/drivers/wx281x/fix_de…
Browse files Browse the repository at this point in the history
…bug_format_string_for_esp32

drivers/wx281x: fix DEBUG format string for ESP32x SoCs
  • Loading branch information
maribu authored Jul 20, 2022
2 parents 574a3b7 + 132afe3 commit f40ac51
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 f40ac51

Please sign in to comment.