From 62f48fa92db1be555a955328c6654a301cf6f7c8 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 17 Oct 2016 22:04:20 +0200 Subject: Make packet valid when its crc is not equal 0 Signed-off-by: Szczepan Zalega --- include/device_proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/device_proto.h') 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 { -- cgit v1.2.1