int size = GetCardSize(); \r
char cmdp = param_getchar(Cmd, 0);\r
\r
- PrintAndLog("Got %d",size);\r
- \r
- return 0;\r
\r
+\r
if ( size > -1) \r
- cmdp = (char)48+size;\r
- \r
+ cmdp = (char)(48+size);\r
+\r
+ PrintAndLog("Got %d",cmdp);\r
+ \r
switch (cmdp) {\r
case '0' : numSectors = 5; break;\r
case '1' : \r