From 53993860f0ec829ff28c0516f83bdb5c99be42a3 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 24 Jan 2020 12:54:18 +0100 Subject: [PATCH] Revert "device/Raise: Fix the color component order in raise::Hand's cRGB" This reverts commit 47c1e23fed6762a4a0653eb245803b8855336fe0, because changing the order in the struct just made things worse. Looks like they _do_ need to be RGB, but the CRGB macro still puts them in BGR order. This is consistent with the Raise factory firmware, so lets stick with that. Signed-off-by: Gergely Nagy --- src/kaleidoscope/device/dygma/raise/Hand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kaleidoscope/device/dygma/raise/Hand.h b/src/kaleidoscope/device/dygma/raise/Hand.h index bc2e3a5b..57c6ec1d 100644 --- a/src/kaleidoscope/device/dygma/raise/Hand.h +++ b/src/kaleidoscope/device/dygma/raise/Hand.h @@ -24,9 +24,9 @@ #include "TWI.h" struct cRGB { - uint8_t b; - uint8_t g; uint8_t r; + uint8_t g; + uint8_t b; }; namespace kaleidoscope {