# HG changeset patch # User Malte Bayer # Date 1323360966 -3600 # Node ID 3957ff8e86c6127b8953dd9e0f24f3c01616cc65 # Parent 5bba01aad0a6bbd06b35326444cc4b9d10610fee more memsave through packed structure# diff -r 5bba01aad0a6 -r 3957ff8e86c6 blackbox/main.c --- a/blackbox/main.c Thu Dec 08 17:14:02 2011 +0100 +++ b/blackbox/main.c Thu Dec 08 17:16:06 2011 +0100 @@ -27,12 +27,12 @@ #define MAX_SLOTS 6 typedef struct { - uint8_t speedlimit; // 4bits speedlimit - uint8_t speedminimum; // 4bits speedminimum + unsigned speedlimit:4; // 4bits speedlimit + unsigned speedminimum:4; // 4bits speedminimum + unsigned trackswitch:1; // 1bit bool uint8_t fuel; uint16_t jumpstart_time, laps; u32 lap_time_start, lap_time; - uint8_t trackswitch; // 1bit bool } cardata; static unsigned char s[8];