1
0
Fork 0
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:
Alberto García Hierro 2019-11-04 17:28:10 +00:00
parent 5a2eba02a3
commit 849a688432

View file

@ -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)