diff --git a/Controllers/N5312AController/N5312AController.cpp b/Controllers/N5312AController/N5312AController.cpp index 405a4418..90e43c92 100644 --- a/Controllers/N5312AController/N5312AController.cpp +++ b/Controllers/N5312AController/N5312AController.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| N5312AController.cpp | -| | -| Driver for N5312A lighting | -| controller | -| | -| Guimard Morgan (morg) 4/02/2022 | -\*-----------------------------------------*/ -#include "N5312AController.h" +/*---------------------------------------------------------*\ +| N5312AController.cpp | +| | +| Driver for N5312A | +| | +| Morgan Guimard (morg) 02 Apr 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include +#include "N5312AController.h" #include "LogManager.h" N5312AController::N5312AController(hid_device* dev_handle, const hid_device_info& info) diff --git a/Controllers/N5312AController/N5312AController.h b/Controllers/N5312AController/N5312AController.h index 89efe23e..232a7aeb 100644 --- a/Controllers/N5312AController/N5312AController.h +++ b/Controllers/N5312AController/N5312AController.h @@ -1,16 +1,19 @@ -/*-----------------------------------------*\ -| N5312AController.h | -| | -| Driver for N5312A lighting | -| controller - header file | -| | -| Guimard Morgan (morg) 4/02/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| N5312AController.h | +| | +| Driver for N5312A | +| | +| Morgan Guimard (morg) 02 Apr 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #pragma once -#include "RGBController.h" #include #include +#include "RGBController.h" #define N5312A_REPORT_ID 0x07 #define N5312A_PACKET_DATA_LENGTH 8 diff --git a/Controllers/N5312AController/N5312AControllerDetect.cpp b/Controllers/N5312AController/N5312AControllerDetect.cpp index 9a48b0ff..4bb2b7e5 100644 --- a/Controllers/N5312AController/N5312AControllerDetect.cpp +++ b/Controllers/N5312AController/N5312AControllerDetect.cpp @@ -1,3 +1,14 @@ +/*---------------------------------------------------------*\ +| N5312AControllerDetect.cpp | +| | +| Detector for N5312A | +| | +| Morgan Guimard (morg) 02 Apr 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "Detector.h" #include "N5312AController.h" #include "RGBController.h" diff --git a/Controllers/N5312AController/RGBController_N5312A.cpp b/Controllers/N5312AController/RGBController_N5312A.cpp index ce6621f1..9d994f7a 100644 --- a/Controllers/N5312AController/RGBController_N5312A.cpp +++ b/Controllers/N5312AController/RGBController_N5312A.cpp @@ -1,16 +1,17 @@ -/*-----------------------------------------*\ -| RGBController_N5312A.cpp | -| | -| Generic RGB Interface for OpenRGB | -| N5312A RGB USB Driver | -| | -| Guimard Morgan (morg) 4/02/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_N5312A.cpp | +| | +| RGBController for N5312A | +| | +| Morgan Guimard (morg) 02 Apr 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "RGBController_N5312A.h" - -#include #include +#include +#include "RGBController_N5312A.h" /**------------------------------------------------------------------*\ @name N5312A mouse @@ -24,6 +25,7 @@ Identified devices that work with this controller: ANT Esports KM540 Mouse, Marvo M115 \*-------------------------------------------------------------------*/ + RGBController_N5312A::RGBController_N5312A(N5312AController* controller_ptr) { controller = controller_ptr; @@ -132,7 +134,7 @@ void RGBController_N5312A::UpdateSingleLED(int led) } void RGBController_N5312A::DeviceUpdateMode() -{ +{ const RGBColor& color = modes[active_mode].value == N5312A_OFF_MODE_VALUE ? 0 : colors[0]; controller->SetMode(color, modes[active_mode].value, modes[active_mode].brightness, modes[active_mode].speed); } diff --git a/Controllers/N5312AController/RGBController_N5312A.h b/Controllers/N5312AController/RGBController_N5312A.h index e63f06de..470be919 100644 --- a/Controllers/N5312AController/RGBController_N5312A.h +++ b/Controllers/N5312AController/RGBController_N5312A.h @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_N5312A.h | -| | -| Generic RGB Interface for OpenRGB | -| N5312A RGB USB Driver | -| | -| Guimard Morgan (morg) 4/02/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_N5312A.h | +| | +| RGBController for N5312A | +| | +| Morgan Guimard (morg) 02 Apr 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once