Skip to content

Commit

Permalink
pal: fix ifdef for log flush
Browse files Browse the repository at this point in the history
if logs enalbed and different than minimal

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Jan 29, 2025
1 parent 13bfdd0 commit 0c6fbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/sal/sid_pal/src/sid_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void sid_pal_hexdump(sid_pal_log_severity_t severity, const void *address, int l

void sid_pal_log_flush(void)
{
#ifndef CONFIG_LOG_MODE_MINIMAL
#if defined(CONFIG_LOG) && !defined(CONFIG_LOG_MODE_MINIMAL)
/* Note: log_buffered_cnt is not supported in minimal log mode. */
while (log_buffered_cnt()) {
k_sleep(LOG_FLUSH_SLEEP_PERIOD);
Expand Down

0 comments on commit 0c6fbc3

Please sign in to comment.