fix bug in return code for hf mf writeblock where it would say it succeeded when it didnt

This commit is contained in:
iceman1001 2023-07-15 11:51:08 +02:00
parent 5f8cd5caca
commit 6cc59848d5

View file

@ -145,7 +145,7 @@ int16_t mifare_cmd_writeblocks(uint8_t key_auth_cmd, uint8_t *key, uint8_t write
LED_B_OFF();
LED_C_OFF();
uint8_t retval = PM3_SUCCESS;
int retval = PM3_SUCCESS;
if (!iso14443a_select_card(uid, NULL, &cuid, true, 0, true)) {
if (g_dbglevel >= DBG_ERROR) Dbprintf("Can't select card");