- added first version of 4x50_chk

- renamed 4x50_write_password to 4x50_writepwd
This commit is contained in:
tharexde
2020-11-01 22:44:16 +01:00
parent d977902fd8
commit 3ddd9f8a91
5 changed files with 14 additions and 6 deletions

View File

@@ -1090,8 +1090,8 @@ static void PacketReceived(PacketCommandNG *packet) {
em4x50_write((em4x50_data_t *)packet->data.asBytes);
break;
}
case CMD_LF_EM4X50_WRITE_PASSWORD: {
em4x50_write_password((em4x50_data_t *)packet->data.asBytes);
case CMD_LF_EM4X50_WRITEPWD: {
em4x50_writepwd((em4x50_data_t *)packet->data.asBytes);
break;
}
case CMD_LF_EM4X50_READ: {
@@ -1140,6 +1140,10 @@ static void PacketReceived(PacketCommandNG *packet) {
emlSet(packet->data.asBytes, packet->oldarg[0], packet->oldarg[1]);
break;
}
case CMD_LF_EM4X50_CHK: {
em4x50_chk((uint32_t *)packet->data.asBytes);
break;
}
#endif
#ifdef WITH_ISO15693

View File

@@ -21,7 +21,7 @@ bool em4x50_sim_send_word(uint32_t word);
void em4x50_info(em4x50_data_t *etd);
void em4x50_write(em4x50_data_t *etd);
void em4x50_write_password(em4x50_data_t *etd);
void em4x50_writepwd(em4x50_data_t *etd);
void em4x50_read(em4x50_data_t *etd);
void em4x50_wipe(uint32_t *password);
void em4x50_brute(em4x50_data_t *etd);
@@ -31,5 +31,6 @@ void em4x50_watch(void);
void em4x50_restore(em4x50_data_t *etd);
void em4x50_sim(void);
void em4x50_stdread(void);
void em4x50_chk(uint32_t *numkeys);
#endif /* EM4X50_H */