SAVE_RAM bugfix introduced by #4137

This commit is contained in:
Blaz Kristan 2024-09-17 16:34:38 +02:00
parent ceed494cf7
commit 88fb860568

View File

@ -641,17 +641,19 @@ typedef class Receive {
bool SegmentOptions : 1; bool SegmentOptions : 1;
bool SegmentBounds : 1; bool SegmentBounds : 1;
bool Direct : 1; bool Direct : 1;
uint8_t reserved : 2; bool Palette : 1;
uint8_t reserved : 1;
}; };
}; };
Receive(int i) { Options = i; } Receive(int i) { Options = i; }
Receive(bool b, bool c, bool e, bool sO, bool sB) { Receive(bool b, bool c, bool e, bool sO, bool sB, bool p)
Brightness = b; : Brightness(b)
Color = c; , Color(c)
Effects = e; , Effects(e)
SegmentOptions = sO; , SegmentOptions(sO)
SegmentBounds = sB; , SegmentBounds(sB)
}; , Palette(p)
{};
} __attribute__ ((aligned(1), packed)) receive_notification_t; } __attribute__ ((aligned(1), packed)) receive_notification_t;
typedef class Send { typedef class Send {
public: public:
@ -673,7 +675,7 @@ typedef class Send {
Hue = h; Hue = h;
} }
} __attribute__ ((aligned(1), packed)) send_notification_t; } __attribute__ ((aligned(1), packed)) send_notification_t;
WLED_GLOBAL receive_notification_t receiveN _INIT(0b00100111); WLED_GLOBAL receive_notification_t receiveN _INIT(0b01100111);
WLED_GLOBAL send_notification_t notifyG _INIT(0b00001111); WLED_GLOBAL send_notification_t notifyG _INIT(0b00001111);
#define receiveNotificationBrightness receiveN.Brightness #define receiveNotificationBrightness receiveN.Brightness
#define receiveNotificationColor receiveN.Color #define receiveNotificationColor receiveN.Color