From 0ada18e508a3d180b714c73d6631025f2215f714 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 27 Jul 2010 13:54:09 +0000 Subject: [PATCH] Fix sector counts. Submitted by: Romuald Conty Pointy hat to: me --- examples/mifare-classic-write-ndef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mifare-classic-write-ndef.c b/examples/mifare-classic-write-ndef.c index fcbfa72..50d5f75 100644 --- a/examples/mifare-classic-write-ndef.c +++ b/examples/mifare-classic-write-ndef.c @@ -243,10 +243,10 @@ main(int argc, char *argv[]) MifareClassicSectorNumber max_s; switch (freefare_get_tag_type (tags[i])) { case CLASSIC_1K: - max_s = 16; + max_s = 15; break; case CLASSIC_4K: - max_s = 40; + max_s = 39; break; default: /* Keep compiler quiet */