mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
[LOG] Make sure logHasOutput() returns true when semihosting is enabled
With semihosting there's always a log output. Without considering it, logIsEnabled() would return false with semihosting enabled but without additional log outputs. Found by @shellixyz
This commit is contained in:
parent
5a2eba02a3
commit
849a688432
1 changed files with 4 additions and 0 deletions
|
@ -137,7 +137,11 @@ static size_t logFormatPrefix(char *buf, const timeMs_t timeMs)
|
|||
|
||||
static bool logHasOutput(void)
|
||||
{
|
||||
#if defined(SEMIHOSTING)
|
||||
return true;
|
||||
#else
|
||||
return logPort || mspLogPort;
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool logIsEnabled(logTopic_e topic, unsigned level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue