fix: 'em' - return negative to a bool is not ok

This commit is contained in:
iceman1001 2017-10-30 16:19:15 +01:00
parent 05991cdffb
commit d5a1e4c7d4

View file

@ -1369,7 +1369,8 @@ void printEM4x05ProtectionBits(uint32_t word) {
//quick test for EM4x05/EM4x69 tag //quick test for EM4x05/EM4x69 tag
bool EM4x05IsBlock0(uint32_t *word) { 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) { int CmdEM4x05Info(const char *Cmd) {