summaryrefslogtreecommitdiff
path: root/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/globals.h b/globals.h
index 245fc12..a647a46 100644
--- a/globals.h
+++ b/globals.h
@@ -17,15 +17,17 @@ typedef struct {
// this will be enlarged later
} ChannelStruct;
+#pragma pack(push) /* push current alignment to stack */
+#pragma pack(1)
typedef struct {
char flash_start;
- char* aux_error_message;
- int channels;
+ short channels;
+ char aux_error_message[32];
char enable_avrq_extra_ampls;
char ChanKey_frequency;
char flash_end;
} FlashStruct;
-
+#pragma pack(pop)
typedef struct {
ChannelStruct ChannelState[max_channels];