+ if ( res > 1 ) {\r
+ // try reading the config block and verify that PWD bit is set before doing this!\r
+ AquireData( CONFIGURATION_BLOCK );\r
+ if ( !tryDetectModulation() && !override) {\r
+ PrintAndLog("Safety Check: Could not detect if PWD bit is set in config block. Exits.");\r
+ return 1;\r
+ } else if (override) {\r
+ PrintAndLog("Safety Check Overriden - proceeding despite risk");\r
+ c.arg[2] = password;\r
+ c.d.asBytes[0] = 0x1;\r
+ } else {\r
+ PrintAndLog("Safety Check: PWD bit is NOT set in config block. Reading without password..."); \r
+ }\r