mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-28 08:06:16 +00:00
Updating nesting typo
This commit is contained in:
@@ -318,9 +318,10 @@ read_card(int read_unlocked)
|
|||||||
//If User has requested an unlocked read, but we're unable to unlock the card, we'll error out.
|
//If User has requested an unlocked read, but we're unable to unlock the card, we'll error out.
|
||||||
if (!unlock_card()) {
|
if (!unlock_card()) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Reading out %d blocks |", uiBlocks + 1);
|
printf("Reading out %d blocks |", uiBlocks + 1);
|
||||||
// Read the card from end to begin
|
// Read the card from end to begin
|
||||||
for (iBlock = uiBlocks; iBlock >= 0; iBlock--) {
|
for (iBlock = uiBlocks; iBlock >= 0; iBlock--) {
|
||||||
@@ -396,9 +397,10 @@ write_card(int write_block_zero)
|
|||||||
//If User has requested an unlocked write, but we're unable to unlock the card, we'll error out.
|
//If User has requested an unlocked write, but we're unable to unlock the card, we'll error out.
|
||||||
if (!unlock_card()) {
|
if (!unlock_card()) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Writing %d blocks |", uiBlocks + 1);
|
printf("Writing %d blocks |", uiBlocks + 1);
|
||||||
// Write the card from begin to end;
|
// Write the card from begin to end;
|
||||||
for (uiBlock = 0; uiBlock <= uiBlocks; uiBlock++) {
|
for (uiBlock = 0; uiBlock <= uiBlocks; uiBlock++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user