mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
hw setmux - improved user feedback
This commit is contained in:
parent
b1e361619f
commit
4b2ab94b26
1 changed files with 8 additions and 1 deletions
|
@ -539,7 +539,7 @@ static int CmdSetMux(const char *Cmd) {
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hw setmux",
|
CLIParserInit(&ctx, "hw setmux",
|
||||||
"Set the ADC mux to a specific value",
|
"Set the ADC mux to a specific value",
|
||||||
"hw setmux --hiraw -> set HIGH RAW"
|
"hw setmux --hipkd -> set HIGH PEAK\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
|
@ -562,6 +562,13 @@ static int CmdSetMux(const char *Cmd) {
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_FPC_USART
|
||||||
|
if (loraw || hiraw) {
|
||||||
|
PrintAndLogEx(INFO, "this ADC mux option is unavailable on RDV4 compiled with FPC USART");
|
||||||
|
return PM3_EINVARG;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
uint8_t arg = 0;
|
uint8_t arg = 0;
|
||||||
if (lopkd)
|
if (lopkd)
|
||||||
arg = 0;
|
arg = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue