From 86eb4dd2e258c86242499425d627e1e8b274bada Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 23 Sep 2022 12:44:07 -0500 Subject: [PATCH] Fix warnings in LianLiUniHubController.cpp --- .../LianLiUniHubController.cpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Controllers/LianLiController/LianLiUniHubController.cpp b/Controllers/LianLiController/LianLiUniHubController.cpp index d9b2abb39..40143141b 100644 --- a/Controllers/LianLiController/LianLiUniHubController.cpp +++ b/Controllers/LianLiController/LianLiUniHubController.cpp @@ -492,17 +492,17 @@ void LianLiUniHubController::Synchronize() \*--------------------------------------------------------------------*/ // uint8_t control = 0; -// /*-------------------------------------*\ -// | Configure fan settings | -// \*-------------------------------------*/ + /*-------------------------------------*\ + | Configure fan settings | + \*-------------------------------------*/ // for(const Channel& channel : channels) // { // if(channel.fanSpeed == UNIHUB_FAN_SPEED_PWM) // { -// /*-----------------------------*\ -// | Configure the fan to pwm | -// | control | -// \*-----------------------------*/ + /*-----------------------------*\ + | Configure the fan to pwm | + | control | + \*-----------------------------*/ // uint8_t config_pwm[1] = { 0x00 }; // control |= (0x01 << channel.index); @@ -512,10 +512,10 @@ void LianLiUniHubController::Synchronize() // } // else // { -// /*-----------------------------*\ -// | Configure the fan to hub | -// | control and set speed | -// \*-----------------------------*/ + /*-----------------------------*\ + | Configure the fan to hub | + | control and set speed | + \*-----------------------------*/ // uint8_t config_hub[2] = { (uint8_t)(channel.fanSpeed >> 0x08), (uint8_t)(channel.fanSpeed & 0xFF) }; // SendConfig(channel.fanHubActionAddress, config_hub, sizeof(config_hub)); @@ -523,9 +523,9 @@ void LianLiUniHubController::Synchronize() // } // } -// /*-------------------------------------*\ -// | Configure fan control modes | -// \*-------------------------------------*/ + /*-------------------------------------*\ + | Configure fan control modes | + \*-------------------------------------*/ // uint8_t config_fan_mode[2] = { 0x31, (uint8_t)(0xF0 | control) }; // SendConfig(UNIHUB_ACTION_ADDRESS, config_fan_mode, sizeof(config_fan_mode));