added check Fi and Di
This commit is contained in:
@@ -675,10 +675,14 @@ int CmdSmartInfo(const char *Cmd){
|
|||||||
PrintAndLogEx(NORMAL, "Di=%d", Di);
|
PrintAndLogEx(NORMAL, "Di=%d", Di);
|
||||||
PrintAndLogEx(NORMAL, "Fi=%d", Fi);
|
PrintAndLogEx(NORMAL, "Fi=%d", Fi);
|
||||||
PrintAndLogEx(NORMAL, "F=%.1f MHz", F);
|
PrintAndLogEx(NORMAL, "F=%.1f MHz", F);
|
||||||
PrintAndLogEx(NORMAL, "Cycles/ETU=%d", Fi/Di);
|
if (Di && Fi) {
|
||||||
PrintAndLogEx(NORMAL, "%.1f bits/sec at 4MHz", (float)4000000 / (Fi/Di));
|
PrintAndLogEx(NORMAL, "Cycles/ETU=%d", Fi/Di);
|
||||||
PrintAndLogEx(NORMAL, "%.1f bits/sec at Fmax=%.1fMHz", (F * 1000000) / (Fi/Di), F);
|
PrintAndLogEx(NORMAL, "%.1f bits/sec at 4MHz", (float)4000000 / (Fi/Di));
|
||||||
|
PrintAndLogEx(NORMAL, "%.1f bits/sec at Fmax=%.1fMHz", (F * 1000000) / (Fi/Di), F);
|
||||||
|
} else {
|
||||||
|
PrintAndLogEx(WARNING, "Di or Fi is RFU.");
|
||||||
|
};
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user