mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fulltext: fix bug triggering session log
This commit is contained in:
parent
b68a0ee082
commit
2722655658
2 changed files with 4 additions and 3 deletions
|
@ -181,13 +181,14 @@ void CmdsHelp(const command_t Commands[]) {
|
|||
int i = 0;
|
||||
while (Commands[i].Name) {
|
||||
if (Commands[i].IsAvailable()) {
|
||||
uint8_t old_printAndLog = g_printAndLog;
|
||||
g_printAndLog = PRINTANDLOG_PRINT;
|
||||
if (Commands[i].Name[0] == '-' || Commands[i].Name[0] == ' ') {
|
||||
PrintAndLogEx(NORMAL, "%-16s %s", Commands[i].Name, Commands[i].Help);
|
||||
} else {
|
||||
PrintAndLogEx(NORMAL, _GREEN_("%-16s")" %s", Commands[i].Name, Commands[i].Help);
|
||||
}
|
||||
g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG;
|
||||
g_printAndLog = old_printAndLog;
|
||||
}
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue