Skip to content

Commit

Permalink
RP2040W logging fix
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Oct 15, 2024
1 parent b25f84b commit a63aaea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ namespace logging {
if (ll >= log_level_screen)
printf("%s%s\n", ts_str, str);

#if !defined(RP2040W)
free(str);
free(ts_str);
#endif

fclose(lfh);
}
Expand Down

0 comments on commit a63aaea

Please sign in to comment.