mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-18 03:00:58 +08:00
fix: 'em' - return negative to a bool is not ok
This commit is contained in:
parent
05991cdffb
commit
d5a1e4c7d4
1 changed files with 2 additions and 1 deletions
|
@ -1369,7 +1369,8 @@ void printEM4x05ProtectionBits(uint32_t word) {
|
|||
|
||||
//quick test for EM4x05/EM4x69 tag
|
||||
bool EM4x05IsBlock0(uint32_t *word) {
|
||||
return EM4x05ReadWord_ext(0, 0, false, word);
|
||||
int res = EM4x05ReadWord_ext(0, 0, false, word);
|
||||
return (res > 0) ? true : false;
|
||||
}
|
||||
|
||||
int CmdEM4x05Info(const char *Cmd) {
|
||||
|
|
Loading…
Reference in a new issue