]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
patterns: 3 bits for duration, 5 bits for mode
[bike-lights.git] / firmware / lights.h
index 41ee4d6aebcdaa9804184101b8b0f6bbf6022de2..f31760621f1ab4da18b61f9b41cffdc303f2e050 100644 (file)
@@ -73,8 +73,8 @@ void ambient_adc(uint16_t adc_val);
 
 /* pattern.c */
 typedef struct {
-       unsigned char mode: 3;
-       unsigned char duration: 5;
+       unsigned char mode: 5;
+       unsigned char duration: 3;
 } pattern_t;
 
 #define PATTERN_END { 0, 0 }