Skip to content
Snippets Groups Projects
Commit d075d19a authored by daniel's avatar daniel
Browse files

Pack data structs

parent 1048d6cf
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
struct pixel { struct pixel {
int x, y; int x, y;
uint8_t bright; uint8_t bright;
}; } __attribute__((packed));
struct packet { struct packet {
uint8_t cmd; uint8_t cmd;
union { union {
struct pixel pixel; struct pixel pixel;
}; };
}; } __attribute__((packed));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment