From f1b36c0b5a2262259abcae4ae3c4222358a86e47 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 13 Sep 2019 07:30:03 +0200 Subject: [PATCH] fix paradox sim compilation... --- client/cmdlfparadox.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/client/cmdlfparadox.c b/client/cmdlfparadox.c index 74e7ce6a1..5ef21992b 100644 --- a/client/cmdlfparadox.c +++ b/client/cmdlfparadox.c @@ -22,7 +22,7 @@ #include "cmdlf.h" #include "lfdemod.h" static int CmdHelp(const char *Cmd); - +/* static int usage_lf_paradox_sim(void) { PrintAndLogEx(NORMAL, "Enables simulation of Paradox card with specified card number."); PrintAndLogEx(NORMAL, "Simulation runs until the button is pressed or another USB command is issued."); @@ -38,6 +38,7 @@ static int usage_lf_paradox_sim(void) { PrintAndLogEx(NORMAL, " lf paradox sim 123 11223"); return PM3_SUCCESS; } +*/ //by marshmellow //Paradox Prox demod - FSK2a RF/50 with preamble of 00001111 (then manchester encoded) @@ -111,8 +112,12 @@ static int CmdParadoxRead(const char *Cmd) { return CmdParadoxDemod(Cmd); } -static int CmdParadoxSim(const char *Cmd) { +static int CmdParadoxSim(const char *Cmd) { + PrintAndLogEx(INFO," To be implemented, feel free to contribute!"); + return PM3_SUCCESS; +} +/* char cmdp = tolower(param_getchar(Cmd, 0)); if (strlen(Cmd) == 0 || cmdp == 'h') return usage_lf_paradox_sim(); @@ -155,13 +160,13 @@ static int CmdParadoxSim(const char *Cmd) { return resp.status; return PM3_SUCCESS; } - +*/ static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, {"demod", CmdParadoxDemod, AlwaysAvailable, "Demodulate a Paradox FSK tag from the GraphBuffer"}, {"read", CmdParadoxRead, IfPm3Lf, "Attempt to read and Extract tag data from the antenna"}, // {"clone", CmdParadoxClone, IfPm3Lf, "clone paradox tag"}, -// {"sim", CmdParadoxSim, IfPm3Lf, "simulate paradox tag"}, + {"sim", CmdParadoxSim, IfPm3Lf, "simulate paradox tag"}, {NULL, NULL, NULL, NULL} };