Update Redragon controller files to new standardized header comment

This commit is contained in:
Adam Honse
2024-06-07 11:37:00 -05:00
parent 34ce3b928b
commit a4a3a7b970
5 changed files with 60 additions and 29 deletions

View File

@@ -1,6 +1,16 @@
#include "RedragonMouseController.h"
/*---------------------------------------------------------*\
| RedragonMouseController.cpp |
| |
| Driver for Redragon mouse |
| |
| Adam Honse (CalcProgrammer1) 15 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "RedragonMouseController.h"
RedragonMouseController::RedragonMouseController(hid_device* dev_handle, const char* path)
{
@@ -111,7 +121,7 @@ void RedragonMouseController::SendMouseApply()
usb_buf[0x01] = 0xF1;
usb_buf[0x02] = 0x02;
usb_buf[0x03] = 0x04;
/*-----------------------------------------------------*\
| Send packet |
\*-----------------------------------------------------*/
@@ -145,7 +155,7 @@ void RedragonMouseController::SendWritePacket
| Copy in data bytes |
\*-----------------------------------------------------*/
memcpy(&usb_buf[0x08], data, data_size);
/*-----------------------------------------------------*\
| Send packet |
\*-----------------------------------------------------*/