From 2b3c815af73f31a4e12db6ed92290cf76b8e2914 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 22 Oct 2016 15:29:59 +0200 Subject: Fix compilation warning and error under G++ - use union to reach uint8 slot_counter for NK Storage. Fixes #46 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 45f165b..7316dc8 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -105,7 +105,7 @@ namespace nitrokey { uint8_t command_id; uint8_t device_status; //@see stick20::device_status uint8_t progress_bar_value; - } storage_status __packed; + } __packed storage_status; } __packed; uint32_t crc; -- cgit v1.2.1