hf tune: mask 32b dword to 16b
This commit is contained in:
1 parent
bc28eb04e4
commit
5a6c9e7863
1 file changed
+1
-1
+1
-1
@@ -142,7 +142,7 @@ int CmdHFTune(const char *Cmd) {
|
||||
}
|
||||
if ((resp.status == PM3_EOPABORTED) || (resp.length != sizeof(uint16_t)))
|
||||
break;
|
||||
uint16_t volt = resp.data.asDwords[0];
|
||||
uint16_t volt = resp.data.asDwords[0] & 0xFFFF;
|
||||
PrintAndLogEx(INPLACE, "%u mV / %5u V", volt, (uint16_t)(volt / 1000));
|
||||
}
|
||||
mode[0] = 3;
|
||||
|
||||
Reference in new issue
Block a user