From d7291aac292602bbad9f87524d57060ab9ae94c0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 24 Dec 2021 15:09:19 +0100 Subject: [PATCH] add some capabilities --- client/src/cmdparser.c | 6 ++++++ client/src/cmdparser.h | 1 + 2 files changed, 7 insertions(+) diff --git a/client/src/cmdparser.c b/client/src/cmdparser.c index 2bc95d8fb..91a67009a 100644 --- a/client/src/cmdparser.c +++ b/client/src/cmdparser.c @@ -175,6 +175,12 @@ bool IfPm3Lcd(void) { return g_pm3_capabilities.compiled_with_lcd; } +bool IfPm3Zx8211(void) { + if (!IfPm3Present()) + return false; + return g_pm3_capabilities.compiled_with_zx8211; +} + void CmdsHelp(const command_t Commands[]) { if (Commands[0].Name == NULL) return; diff --git a/client/src/cmdparser.h b/client/src/cmdparser.h index 9b0933329..8f2dfa697 100644 --- a/client/src/cmdparser.h +++ b/client/src/cmdparser.h @@ -47,6 +47,7 @@ bool IfPm3Legicrf(void); bool IfPm3Iclass(void); bool IfPm3NfcBarcode(void); bool IfPm3Lcd(void); +bool IfPm3Zx8211(void); // Print help for each command in the command array void CmdsHelp(const command_t Commands[]);