From 44cffeb3c05445ea271733c9b8b26e94f01f9cc2 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Sun, 11 Apr 2021 23:29:51 -0500 Subject: [PATCH] Move header includes in Model01Side.h outside namespace blocks Some headers in the file Model01Side.h were included inside the namespace `kaleidoscope::driver::keyboardio` instead of being left in the global namespace, where they should have been. Signed-off-by: Michael Richters --- .../src/kaleidoscope/driver/keyboardio/Model01Side.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h index 4a550b03..1e1743f3 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model01/src/kaleidoscope/driver/keyboardio/Model01Side.h @@ -23,10 +23,6 @@ #pragma once -namespace kaleidoscope { -namespace driver { -namespace keyboardio { - #include #include "wire-protocol-constants.h" @@ -46,6 +42,10 @@ struct cRGB { #define LEDS_PER_HAND 32 #define LED_BYTES_PER_BANK sizeof(cRGB) * LEDS_PER_HAND/LED_BANKS +namespace kaleidoscope { +namespace driver { +namespace keyboardio { + typedef union { cRGB leds[LEDS_PER_HAND]; byte bytes[LED_BANKS][LED_BYTES_PER_BANK];