Skip to content

Commit a0eb1f7

Browse files
committed
accidentally removed union
1 parent bf7074a commit a0eb1f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arduino/SerialSlave/SerialSlave.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ typedef struct rgb_color_data{
1010
uint8_t index;
1111
} rgb_color_data;
1212

13+
union stream_data {
14+
rgb_color rgb;
15+
rgb_color_data rgbd;
16+
};
17+
18+
1319
void setup() {
1420
Serial.begin(115200);
1521
Serial.println("Ready to receive colors.");

0 commit comments

Comments
 (0)