+ \r
+ // try reading the config block and verify that PWD bit is set before doing this!\r
+ AquireData( CONFIGURATION_BLOCK );\r
+ if ( !tryDetectModulation() ) {\r
+ PrintAndLog("Could not detect is PWD bit is set in config block. Exits.");\r
+ return 1;\r
+ }\r
+ //if PWD bit is set, allow to execute read command with password.\r
+ if (( config.block0 & T55x7_PWD ) == 1) {\r
+ c.arg[2] = password;\r
+ c.d.asBytes[0] = 0x1; \r
+ } else { \r
+ PrintAndLog("PWD bit is NOT set in config block. Reading without password...");\r
+ }\r