safer logic when touching locally g_printAndLog
This commit is contained in:
1 parent
2722655658
commit
4b936bc20c
4 files changed
+13
-11
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user