From 430fea5338d70add80038806d7b730d1ceea1af9 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 19 Aug 2026 11:58:30 +0200 Subject: [PATCH] Guard fpga config flash mode with capability --- client/src/cmdfpga.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/cmdfpga.c b/client/src/cmdfpga.c index d720d65b3..0523fcc23 100644 --- a/client/src/cmdfpga.c +++ b/client/src/cmdfpga.c @@ -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");