From fae1e8e9eb9ac36c411e0132e636645e38e96569 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 25 May 2024 09:34:30 -0500 Subject: [PATCH] Update Keychron keyboard controller files to new standardized header comment --- .../KeychronKeyboardController.cpp | 21 +++++++++------- .../KeychronKeyboardController.h | 21 +++++++++------- .../KeychronKeyboardControllerDetect.cpp | 11 +++++++++ .../RGBController_KeychronKeyboard.cpp | 24 ++++++++++--------- .../RGBController_KeychronKeyboard.h | 18 +++++++------- 5 files changed, 58 insertions(+), 37 deletions(-) diff --git a/Controllers/KeychronKeyboardController/KeychronKeyboardController.cpp b/Controllers/KeychronKeyboardController/KeychronKeyboardController.cpp index 40fbf9ab..95eb836d 100644 --- a/Controllers/KeychronKeyboardController/KeychronKeyboardController.cpp +++ b/Controllers/KeychronKeyboardController/KeychronKeyboardController.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| KeychronKeyboardController.cpp | -| | -| Driver for Keychron Keyboard lighting | -| controller | -| | -| Guimard Morgan (morg) 2/20/2022 | -\*-----------------------------------------*/ -#include "KeychronKeyboardController.h" +/*---------------------------------------------------------*\ +| KeychronKeyboardController.cpp | +| | +| Driver for Keychron keyboard | +| | +| Morgan Guimard (morg) 20 Feb 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include +#include "KeychronKeyboardController.h" using namespace std::chrono_literals; diff --git a/Controllers/KeychronKeyboardController/KeychronKeyboardController.h b/Controllers/KeychronKeyboardController/KeychronKeyboardController.h index 42e956fb..6ae24da2 100644 --- a/Controllers/KeychronKeyboardController/KeychronKeyboardController.h +++ b/Controllers/KeychronKeyboardController/KeychronKeyboardController.h @@ -1,11 +1,14 @@ -/*-----------------------------------------*\ -| KeychronKeyboardController.h | -| | -| Driver for Keychron Keyboard lighting | -| controller - header file | -| | -| Guimard Morgan (morg) 2/20/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| KeychronKeyboardController.h | +| | +| Driver for Keychron keyboard | +| | +| Morgan Guimard (morg) 20 Feb 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #pragma once #include "RGBController.h" @@ -104,7 +107,7 @@ protected: private: std::string location; std::string serial_number; - std::string version; + std::string version; std::vector led_sequence_positions; void SetCustomization(bool state); diff --git a/Controllers/KeychronKeyboardController/KeychronKeyboardControllerDetect.cpp b/Controllers/KeychronKeyboardController/KeychronKeyboardControllerDetect.cpp index 6f561d7f..f75dbaf2 100644 --- a/Controllers/KeychronKeyboardController/KeychronKeyboardControllerDetect.cpp +++ b/Controllers/KeychronKeyboardController/KeychronKeyboardControllerDetect.cpp @@ -1,3 +1,14 @@ +/*---------------------------------------------------------*\ +| KeychronKeyboardControllerDetect.cpp | +| | +| Detector for Keychron keyboard | +| | +| Morgan Guimard (morg) 20 Feb 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "Detector.h" #include "KeychronKeyboardController.h" #include "RGBController.h" diff --git a/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.cpp b/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.cpp index f1d85f56..221ffe2e 100644 --- a/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.cpp +++ b/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.cpp @@ -1,17 +1,19 @@ -/*-----------------------------------------*\ -| RGBController_KeychronKeyboard.cpp | -| | -| Generic RGB Interface for OpenRGB | -| Keychron Keyboard USB Driver | -| | -| Guimard Morgan (morg) 2/20/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_KeychronKeyboard.cpp | +| | +| RGBController for Keychron keyboard | +| | +| Morgan Guimard (morg) 20 Feb 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include +#include #include "RGBControllerKeyNames.h" #include "RGBController_KeychronKeyboard.h" -#include -#include - #define NA 0xFFFFFFFF typedef struct diff --git a/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.h b/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.h index 521af088..42b66a1d 100644 --- a/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.h +++ b/Controllers/KeychronKeyboardController/RGBController_KeychronKeyboard.h @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_KeychronKeyboard.h | -| | -| Generic RGB Interface for OpenRGB | -| Keychron Keyboard RGB USB Driver | -| | -| Guimard Morgan (morg) 2/20/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_KeychronKeyboard.h | +| | +| RGBController for Keychron keyboard | +| | +| Morgan Guimard (morg) 20 Feb 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once