chg: 'lf io watch' - uses NG and reports back to client

This commit is contained in:
iceman1001 2020-06-22 12:57:28 +02:00
commit ba6bc0ecef
6 changed files with 43 additions and 27 deletions

View file

@ -818,9 +818,10 @@ static void PacketReceived(PacketCommandNG *packet) {
CopyHIDtoT55x7(packet->oldarg[0], packet->oldarg[1], packet->oldarg[2], packet->data.asBytes[0]);
break;
}
case CMD_LF_IO_DEMOD: {
case CMD_LF_IO_WATCH: {
uint32_t high, low;
CmdIOdemodFSK(0, &high, &low, 1);
int res = lf_io_watch(0, &high, &low);
reply_ng(CMD_LF_IO_WATCH, res, NULL, 0);
break;
}
case CMD_LF_EM410X_DEMOD: {