Fix " \t" sequences.
This commit is contained in:
parent
07695f4c18
commit
6984e162e6
3 changed files with 8 additions and 8 deletions
|
@ -243,13 +243,13 @@ main(int argc, char *argv[])
|
|||
|
||||
bool write_ndef = true;
|
||||
if (write_options.interactive) {
|
||||
printf ("Write NDEF [yN] ");
|
||||
fgets (buffer, BUFSIZ, stdin);
|
||||
write_ndef = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
printf ("Write NDEF [yN] ");
|
||||
fgets (buffer, BUFSIZ, stdin);
|
||||
write_ndef = ((buffer[0] == 'y') || (buffer[0] == 'Y'));
|
||||
} else {
|
||||
printf ("\n");
|
||||
printf ("\n");
|
||||
}
|
||||
|
||||
|
||||
for (int n = 0; n < 40; n++) {
|
||||
memcpy(card_write_keys[n].key, transport_key, sizeof (transport_key));
|
||||
card_write_keys[n].type = MFC_KEY_A;
|
||||
|
|
|
@ -100,7 +100,7 @@ int mifare_classic_decrement (FreefareTag tag, const MifareClassicBlockNumber
|
|||
int mifare_classic_restore (FreefareTag tag, const MifareClassicBlockNumber block);
|
||||
int mifare_classic_transfer (FreefareTag tag, const MifareClassicBlockNumber block);
|
||||
|
||||
int mifare_classic_get_trailer_block_permission (FreefareTag tag, const MifareClassicBlockNumber block, const uint16_t permission, const MifareClassicKeyType key_type);
|
||||
int mifare_classic_get_trailer_block_permission (FreefareTag tag, const MifareClassicBlockNumber block, const uint16_t permission, const MifareClassicKeyType key_type);
|
||||
int mifare_classic_get_data_block_permission (FreefareTag tag, const MifareClassicBlockNumber block, const unsigned char permission, const MifareClassicKeyType key_type);
|
||||
|
||||
int mifare_classic_format_sector (FreefareTag tag, const MifareClassicSectorNumber sector);
|
||||
|
|
|
@ -142,7 +142,7 @@ unsigned char mifare_data_access_permissions[] = {
|
|||
* ||,--- C1 |||| |||,--------------------- i
|
||||
* ||| |||| ||||
|
||||
* 0b000 0b 1111 1111 */ 0xff, /* Default (blank card) */
|
||||
/* 0b001 0b 1000 1100 */ 0x8c,
|
||||
/* 0b001 0b 1000 1100 */ 0x8c,
|
||||
/* 0b010 0b 1000 1000 */ 0x88,
|
||||
/* 0b011 0b 1010 1111 */ 0xaf,
|
||||
/* 0b100 0b 1010 1010 */ 0xaa,
|
||||
|
@ -171,7 +171,7 @@ uint16_t mifare_trailer_access_permissions[] = {
|
|||
* ||,--- C1 |||| |||| |||,-------------------------------- write B
|
||||
* ||| |||| |||| ||||
|
||||
* 0b000 0b 0010 1000 1010*/ 0x28a,
|
||||
/* 0b001 0b 0001 1100 0001*/ 0x1c1,
|
||||
/* 0b001 0b 0001 1100 0001*/ 0x1c1,
|
||||
/* 0b010 0b 0000 1000 1000*/ 0x088,
|
||||
/* 0b011 0b 0000 1100 0000*/ 0x0c0,
|
||||
/* 0b100 0b 0010 1010 1010*/ 0x2aa, /* Default (blank card) */
|
||||
|
|
Loading…
Reference in a new issue