chg: 'lf t55xx wipe p' - now takes a password for wipe

chg: 'lf t55xx wakeup' - uses NG
This commit is contained in:
iceman1001 2019-09-12 21:20:40 +02:00
commit 3821a03a40
3 changed files with 50 additions and 60 deletions

View file

@ -797,7 +797,12 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_LF_T55XX_WAKEUP: {
T55xxWakeUp(packet->oldarg[0], packet->oldarg[1]);
struct p {
uint32_t password;
uint8_t flags;
} PACKED;
struct p *payload = (struct p *) packet->data.asBytes;
T55xxWakeUp(payload->password, payload->flags);
break;
}
case CMD_LF_T55XX_RESET_READ: {