From bb966caab1c72434e16fb426fc772f49f59b898d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 1 May 2019 22:47:21 +0200 Subject: [PATCH] Replace WITH_LCD by dynamic detection in client --- client/cmdhw.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/cmdhw.c b/client/cmdhw.c index 22de1e9e5..337ee4e0f 100644 --- a/client/cmdhw.c +++ b/client/cmdhw.c @@ -338,7 +338,6 @@ static int CmdFPGAOff(const char *Cmd) { return PM3_SUCCESS; } -#ifdef WITH_LCD static int CmdLCD(const char *Cmd) { int i, j; sscanf(Cmd, "%x %d", &i, &j); @@ -354,7 +353,6 @@ static int CmdLCDReset(const char *Cmd) { SendCommandOLD(CMD_LCD_RESET, strtol(Cmd, NULL, 0), 0, 0, NULL, 0); return PM3_SUCCESS; } -#endif static int CmdReadmem(const char *Cmd) { clearCommandBuffer(); @@ -465,10 +463,8 @@ static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, {"detectreader", CmdDetectReader, IfPm3Present, "['l'|'h'] -- Detect external reader field (option 'l' or 'h' to limit to LF or HF)"}, {"fpgaoff", CmdFPGAOff, IfPm3Present, "Set FPGA off"}, -#ifdef WITH_LCD - {"lcd", CmdLCD, IfPm3Present, " -- Send command/data to LCD"}, - {"lcdreset", CmdLCDReset, IfPm3Present, "Hardware reset LCD"}, -#endif + {"lcd", CmdLCD, IfPm3Lcd, " -- Send command/data to LCD"}, + {"lcdreset", CmdLCDReset, IfPm3Lcd, "Hardware reset LCD"}, {"readmem", CmdReadmem, IfPm3Present, "[address] -- Read memory at decimal address from flash"}, {"reset", CmdReset, IfPm3Present, "Reset the Proxmark3"}, {"setlfdivisor", CmdSetDivisor, IfPm3Present, "<19 - 255> -- Drive LF antenna at 12Mhz/(divisor+1)"},