mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-08-29 05:28:22 +00:00
Guard fpga config flash mode with capability
This commit is contained in:
@@ -33,6 +33,11 @@ static int CmdConfigFpga(const char *Cmd) {
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if ((! sram_mode) && (! IfFpgaFlash())) {
|
||||
PrintAndLogEx(WARNING, "This device does not support FPGA flash configuration");
|
||||
return PM3_ENOTIMPL;
|
||||
}
|
||||
|
||||
// Check if file name is provided
|
||||
if (fnlen == 0) {
|
||||
PrintAndLogEx(WARNING, "No file specified");
|
||||
|
||||
Reference in New Issue
Block a user