Skip to content

Commit

Permalink
fix(tests): Use debug builds and high resolution timer
Browse files Browse the repository at this point in the history
By setting CONFIG_DEBUG, the native_posix builds will not be optimized
which makes debugging them much nicer.

By setting CONFIG_SYS_CLOCK_TICKS_PER_SEC to 1000, debug prints have a
higher resolution and not always show up as multiples of 10ms.
  • Loading branch information
okke-formsma authored May 27, 2021
1 parent 8196b1d commit a32cd66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/boards/native_posix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ CONFIG_ZMK_BLE=n
CONFIG_LOG=y
CONFIG_LOG_BACKEND_SHOW_COLOR=n
CONFIG_ZMK_LOG_LEVEL_DBG=y
CONFIG_DEBUG=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

0 comments on commit a32cd66

Please sign in to comment.