From 9c12e30b7905ed60e7b5910e65dbcb2e320cc7f7 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 23 Sep 2026 10:56:22 +0200 Subject: [PATCH] Implement IfBwm function for BWM capability check Added IfBwm function to check BWM capability based on PM3 presence. Signed-off-by: Niel Nielsen --- client/src/cmdparser.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/cmdparser.c b/client/src/cmdparser.c index 1044950fc..119693c36 100644 --- a/client/src/cmdparser.c +++ b/client/src/cmdparser.c @@ -138,6 +138,12 @@ bool IfPm5StdAnt(void) { return g_pm3_capabilities.is_pm5_std_ant; } +bool IfBwm(void) { + if (IfPm3Present() == false) + return false; + return g_pm3_capabilities.compiled_with_bwm; +} + bool IfFpgaFlash(void) { if (IfPm3Present() == false) return false;