Replace WITH_FPC by dynamic detection in client

This commit is contained in:
Philippe Teuwen 2019-05-01 22:56:10 +02:00
commit 30d29434d5

View file

@ -490,6 +490,11 @@ static int CmdAnalyseA(const char *Cmd) {
bool errors = false; bool errors = false;
uint8_t data[PM3_CMD_DATA_SIZE] = {0x00}; uint8_t data[PM3_CMD_DATA_SIZE] = {0x00};
if (!IfPm3Fpc) {
PrintAndLogEx(ERR, "Device has no FPC USART support");
return PM3_EDEVNOTSUPP;
}
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) { while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
switch (tolower(param_getchar(Cmd, cmdp))) { switch (tolower(param_getchar(Cmd, cmdp))) {
case 'd': case 'd':