logging: Add resetting of dropped_cnt to init
It is mainly for testing purposes where logging is multiple times reinitialized. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
c4079e4be2
commit
12f366c954
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ void log_core_init(void)
|
|||
uint32_t freq;
|
||||
|
||||
panic_mode = false;
|
||||
dropped_cnt = 0;
|
||||
|
||||
/* Set default timestamp. */
|
||||
if (sys_clock_hw_cycles_per_sec() > 1000000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue