Guard fpga config flash mode with capability

This commit is contained in:
Philippe Teuwen
2026-08-19 12:04:33 +02:00
parent 7c436d2d58
commit 430fea5338
+5
View File
@@ -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");