safer logic when touching locally g_printAndLog

This commit is contained in:
Philippe Teuwen committed 2021-12-13 03:16:57 +01:00
1 parent 2722655658
commit 4b936bc20c
4 files changed
+13 -11

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ void CmdsHelp(const command_t Commands[]) {
while (Commands[i].Name) {
if (Commands[i].IsAvailable()) {
uint8_t old_printAndLog = g_printAndLog;
g_printAndLog = PRINTANDLOG_PRINT;
g_printAndLog &= PRINTANDLOG_PRINT;
if (Commands[i].Name[0] == '-' || Commands[i].Name[0] == ' ') {
PrintAndLogEx(NORMAL, "%-16s %s", Commands[i].Name, Commands[i].Help);
} else {