diff options
| -rw-r--r-- | include/device_proto.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/include/device_proto.h b/include/device_proto.h index 6e99eaa..ff8bb67 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -125,7 +125,7 @@ namespace nitrokey {              bool isValid() const {                //		return !_zero && payload.isValid() && isCRCcorrect() &&                //				command_id == (uint8_t)(cmd_id); -              return true; +              return crc != 0;              }              operator std::string() const {  | 
