Skip to content

Commit 89ac8e2

Browse files
committed
1.5.1 - Fix wrong invalid/skipped keys count
1 parent 62a7c9b commit 89ac8e2

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.flipcorg/banner.png

-23.4 KB
Binary file not shown.

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.5.1
4+
5+
Fix wrong invalid/skipped keys count
36

47
## 1.5.0
58

mifare_nested_i.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <gui/modules/variable_item_list.h>
2222
#include "mifare_nested_icons.h"
2323

24-
#define NESTED_VERSION_APP "1.5.0"
24+
#define NESTED_VERSION_APP "1.5.1"
2525
#define NESTED_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNested"
2626
#define NESTED_RECOVER_KEYS_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNestedRecovery"
2727
#define NESTED_NONCE_FORMAT_VERSION "3"

mifare_nested_worker.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,13 @@ SaveNoncesResult_t* mifare_nested_worker_write_nonces(
478478
for(uint8_t sector = 0; sector < sector_count; sector++) {
479479
for(uint8_t key_type = 0; key_type < 2; key_type++) {
480480
if(nonces->nonces[sector][key_type][tries]->invalid) {
481-
result->invalid++;
481+
if (tries == 0) {
482+
result->invalid++;
483+
}
482484
} else if(nonces->nonces[sector][key_type][tries]->skipped) {
483-
result->skipped++;
485+
if (tries == 0) {
486+
result->skipped++;
487+
}
484488
} else if(nonces->nonces[sector][key_type][tries]->collected) {
485489
if(nonces->nonces[sector][key_type][tries]->hardnested) {
486490
FuriString* hardnested_path = furi_string_alloc();

0 commit comments

Comments
 (0)