From 7c436d2d5829218e3a712d724b03a3ea7efaeee5 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 19 Aug 2026 11:48:21 +0200 Subject: [PATCH] guard pm5 commands with capabilities --- client/src/cmdfpga.c | 2 +- client/src/cmdhw.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/cmdfpga.c b/client/src/cmdfpga.c index 62a47e220..d720d65b3 100644 --- a/client/src/cmdfpga.c +++ b/client/src/cmdfpga.c @@ -181,7 +181,7 @@ static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, {"-------------", CmdHelp, AlwaysAvailable, "----------------------- " _CYAN_("Operation") " -----------------------"}, {"config", CmdConfigFpga, IfPm3Present, "Configure FPGA for sram or flash"}, - {"pwrpwm", CmdFpgaSetPowerPWM, IfPm3Present, "Adjust the input voltage of the driver through FPGA."}, + {"pwrpwm", CmdFpgaSetPowerPWM, IfPm5, "Adjust the input voltage of the driver through FPGA."}, {NULL, NULL, NULL, NULL} }; diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 0d5747681..b0d3f50f0 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1926,9 +1926,9 @@ static command_t CommandTable[] = { {"dbg", CmdDbg, IfPm3Present, "Set device side debug level"}, {"fpga", CmdFPGA, IfPm3Present, "Fpga commands"}, {"fpgaoff", CmdFPGAOff, IfPm3Present, "Turn off FPGA on device"}, - {"ant_pm5", CmdPM5Ant, IfPm3Present, "Control the antennal of pm5"}, - {"qc_pm5", CmdPM5QCTest, IfPm3Present, "Perform QC test for the PM5"}, - {"factorydata", CmdDeviceFactoryData,IfPm3Present, "Get/Set the factory data for Device"}, + {"ant_pm5", CmdPM5Ant, IfPm5StdAnt, "Control the antennal of pm5"}, + {"qc_pm5", CmdPM5QCTest, IfPm5, "Perform QC test for the PM5"}, + {"factorydata", CmdDeviceFactoryData, IfI2cEeprom, "Get/Set the factory data for Device"}, {"lcd", CmdLCD, IfPm3Lcd, "Send command/data to LCD"}, {"lcdreset", CmdLCDReset, IfPm3Lcd, "Hardware reset LCD"}, {"ping", CmdPing, IfPm3Present, "Test if the Proxmark3 is responsive"},