From 21cb086b874e7fa6690fd87bf2fad78463a0693f Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Wed, 2 Jul 2025 08:28:23 -0500 Subject: [PATCH] Fix unused argument warning in GoveeController --- Controllers/GoveeController/GoveeController.cpp | 2 +- Controllers/GoveeController/GoveeController.h | 2 +- Controllers/GoveeController/RGBController_Govee.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/GoveeController/GoveeController.cpp b/Controllers/GoveeController/GoveeController.cpp index 7ead83f6..0b418b92 100644 --- a/Controllers/GoveeController/GoveeController.cpp +++ b/Controllers/GoveeController/GoveeController.cpp @@ -162,7 +162,7 @@ void GoveeController::ReceiveBroadcast(char* recv_buf, int size) } } -void GoveeController::SetColor(unsigned char red, unsigned char green, unsigned char blue, unsigned char brightness) +void GoveeController::SetColor(unsigned char red, unsigned char green, unsigned char blue) { json command; diff --git a/Controllers/GoveeController/GoveeController.h b/Controllers/GoveeController/GoveeController.h index ba0ff1d0..3f552104 100644 --- a/Controllers/GoveeController/GoveeController.h +++ b/Controllers/GoveeController/GoveeController.h @@ -35,7 +35,7 @@ public: void SendScan(); - void SetColor(unsigned char red, unsigned char green, unsigned char blue, unsigned char brightness); + void SetColor(unsigned char red, unsigned char green, unsigned char blue); private: std::string firmware_version; diff --git a/Controllers/GoveeController/RGBController_Govee.cpp b/Controllers/GoveeController/RGBController_Govee.cpp index 26a9bc62..d681ba98 100644 --- a/Controllers/GoveeController/RGBController_Govee.cpp +++ b/Controllers/GoveeController/RGBController_Govee.cpp @@ -120,7 +120,7 @@ void RGBController_Govee::DeviceUpdateMode() unsigned char red = RGBGetRValue(modes[active_mode].colors[0]); unsigned char grn = RGBGetGValue(modes[active_mode].colors[0]); unsigned char blu = RGBGetBValue(modes[active_mode].colors[0]); - controller->SetColor(red, grn, blu, 255); + controller->SetColor(red, grn, blu); } else {