This commit is contained in:
tharexde
2020-10-22 00:42:18 +02:00
parent a84074686b
commit a04002ab1b
5 changed files with 228 additions and 334 deletions
+2 -2
View File
@@ -1034,7 +1034,7 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_LF_EM4X50_WIPE: {
em4x50_wipe((em4x50_data_t *)packet->data.asBytes);
em4x50_wipe((uint32_t *)packet->data.asBytes);
break;
}
case CMD_LF_EM4X50_BRUTE: {
@@ -1042,7 +1042,7 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_LF_EM4X50_LOGIN: {
em4x50_login((em4x50_data_t *)packet->data.asBytes);
em4x50_login((uint32_t *)packet->data.asBytes);
break;
}
case CMD_LF_EM4X50_RESET: {
+109 -190
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -23,9 +23,9 @@ void em4x50_info(em4x50_data_t *etd);
void em4x50_write(em4x50_data_t *etd);
void em4x50_write_password(em4x50_data_t *etd);
void em4x50_read(em4x50_data_t *etd);
void em4x50_wipe(em4x50_data_t *etd);
void em4x50_wipe(uint32_t *password);
void em4x50_brute(em4x50_data_t *etd);
void em4x50_login(em4x50_data_t *etd);
void em4x50_login(uint32_t *password);
void em4x50_reset(void);
void em4x50_watch(void);
+111 -132
View File
File diff suppressed because it is too large Load Diff
+4 -8
View File
@@ -43,14 +43,10 @@
typedef struct {
bool addr_given;
bool pwd_given;
bool newpwd_given;
uint8_t password[4];
uint8_t new_password[4];
uint8_t address;
uint8_t word[4];
uint32_t start_password;
uint32_t stop_password;
uint32_t login_password;
uint32_t password1;
uint32_t password2;
uint32_t word;
uint32_t addresses;
} em4x50_data_t;
typedef struct {