Skip to content

Commit

Permalink
1.5.1 - Fix wrong invalid/skipped keys count
Browse files Browse the repository at this point in the history
  • Loading branch information
AloneLiberty committed Jul 9, 2023
1 parent 62a7c9b commit 89ac8e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Binary file removed .flipcorg/banner.png
Binary file not shown.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.5.1

Fix wrong invalid/skipped keys count

## 1.5.0

Expand Down
2 changes: 1 addition & 1 deletion mifare_nested_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <gui/modules/variable_item_list.h>
#include "mifare_nested_icons.h"

#define NESTED_VERSION_APP "1.5.0"
#define NESTED_VERSION_APP "1.5.1"
#define NESTED_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNested"
#define NESTED_RECOVER_KEYS_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNestedRecovery"
#define NESTED_NONCE_FORMAT_VERSION "3"
Expand Down
8 changes: 6 additions & 2 deletions mifare_nested_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,13 @@ SaveNoncesResult_t* mifare_nested_worker_write_nonces(
for(uint8_t sector = 0; sector < sector_count; sector++) {
for(uint8_t key_type = 0; key_type < 2; key_type++) {
if(nonces->nonces[sector][key_type][tries]->invalid) {
result->invalid++;
if (tries == 0) {
result->invalid++;
}
} else if(nonces->nonces[sector][key_type][tries]->skipped) {
result->skipped++;
if (tries == 0) {
result->skipped++;
}
} else if(nonces->nonces[sector][key_type][tries]->collected) {
if(nonces->nonces[sector][key_type][tries]->hardnested) {
FuriString* hardnested_path = furi_string_alloc();
Expand Down

0 comments on commit 89ac8e2

Please sign in to comment.