Fix 'make style' findings

This commit is contained in:
Christian Zietz committed 2024-02-02 20:51:56 +01:00
1 parent 43b257ddb4
commit 404d0a8c7b
4 files changed
+19 -4

No files matched your search

+2 -2
View File
@@ -765,7 +765,7 @@ static int CmdSetHFThreshold(const char *Cmd) {
params[2] = arg_get_int_def(ctx, 3, 8);
CLIParserFree(ctx);
if ((params[0]<1) || (params[0]>63) || (params[1]<1) || (params[1]>63)) {
if ((params[0] < 1) || (params[0] > 63) || (params[1] < 1) || (params[1] > 63)) {
PrintAndLogEx(ERR, "Thresholds must be between " _YELLOW_("1") " and " _YELLOW_("63"));
return PM3_EINVARG;
}
@@ -1228,7 +1228,7 @@ static command_t CommandTable[] = {
{"readmem", CmdReadmem, IfPm3Present, "Read from processor flash"},
{"reset", CmdReset, IfPm3Present, "Reset the Proxmark3"},
{"setlfdivisor", CmdSetDivisor, IfPm3Present, "Drive LF antenna at 12MHz / (divisor + 1)"},
{"sethfthresh", CmdSetHFThreshold,IfPm3Present, "Set thresholds in HF/14a mode"},
{"sethfthresh", CmdSetHFThreshold, IfPm3Present, "Set thresholds in HF/14a mode"},
{"setmux", CmdSetMux, IfPm3Present, "Set the ADC mux to a specific value"},
{"standalone", CmdStandalone, IfPm3Present, "Jump to the standalone mode"},
{"status", CmdStatus, IfPm3Present, "Show runtime status information about the connected Proxmark3"},