From c404b8a3bfa1ebc0c80d4d37e012021af8c29c57 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 11 Jan 2024 22:11:13 +0700 Subject: [PATCH] remove newline character --- src/cud_display.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/cud_display.cpp b/src/cud_display.cpp index ed6b076..61f1115 100644 --- a/src/cud_display.cpp +++ b/src/cud_display.cpp @@ -203,7 +203,7 @@ void CUDDisplay::updateLightGroupState() { bool state = calculateLightGroupState(); // Send the state to the display this->displayAdapter->print("lt_bt.pic="); - this->displayAdapter->println(state ? COMPONENT_LIGHT_TOGGLE_PIC_ON : COMPONENT_LIGHT_TOGGLE_PIC_OFF); + this->displayAdapter->print(state ? COMPONENT_LIGHT_TOGGLE_PIC_ON : COMPONENT_LIGHT_TOGGLE_PIC_OFF); this->sendStopBytes(); } void CUDDisplay::updateFanGroupState() { @@ -211,7 +211,7 @@ void CUDDisplay::updateFanGroupState() { bool state = calculateFanGroupState(); // Send the state to the display this->displayAdapter->print("fan_bt.pic="); - this->displayAdapter->println(state ? COMPONENT_FAN_TOGGLE_PIC_ON : COMPONENT_FAN_TOGGLE_PIC_OFF); + this->displayAdapter->print(state ? COMPONENT_FAN_TOGGLE_PIC_ON : COMPONENT_FAN_TOGGLE_PIC_OFF); this->sendStopBytes(); } void CUDDisplay::updateAirPurifierState() { @@ -219,7 +219,7 @@ void CUDDisplay::updateAirPurifierState() { bool state = this->outputCard->getState(7); // Send the state to the display this->displayAdapter->print("puri_bt.pic="); - this->displayAdapter->println(state ? COMPONENT_AIR_PURIFIER_TOGGLE_PIC_ON : COMPONENT_AIR_PURIFIER_TOGGLE_PIC_OFF); + this->displayAdapter->print(state ? COMPONENT_AIR_PURIFIER_TOGGLE_PIC_ON : COMPONENT_AIR_PURIFIER_TOGGLE_PIC_OFF); this->sendStopBytes(); } void CUDDisplay::updateACState() { @@ -229,28 +229,28 @@ void CUDDisplay::updateACState() { uint8_t temperature = this->climateCard->getTemperature(); // Send the state to the display this->displayAdapter->print("mode_off_btn.pic="); - this->displayAdapter->println(mode == 0 ? COMPONENT_AC_MODE_OFF_PIC_ACTIVE : COMPONENT_AC_MODE_OFF_PIC_INACTIVE); + this->displayAdapter->print(mode == 0 ? COMPONENT_AC_MODE_OFF_PIC_ACTIVE : COMPONENT_AC_MODE_OFF_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("mode_fan_btn.pic="); - this->displayAdapter->println(mode == 1 ? COMPONENT_AC_MODE_FAN_ONLY_PIC_ACTIVE : COMPONENT_AC_MODE_FAN_ONLY_PIC_INACTIVE); + this->displayAdapter->print(mode == 1 ? COMPONENT_AC_MODE_FAN_ONLY_PIC_ACTIVE : COMPONENT_AC_MODE_FAN_ONLY_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("mode_cool_btn.pic="); - this->displayAdapter->println(mode == 2 ? COMPONENT_AC_MODE_COOL_PIC_ACTIVE : COMPONENT_AC_MODE_COOL_PIC_INACTIVE); + this->displayAdapter->print(mode == 2 ? COMPONENT_AC_MODE_COOL_PIC_ACTIVE : COMPONENT_AC_MODE_COOL_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("fan_auto_btn.pic="); - this->displayAdapter->println(fan_speed == 0 ? COMPONENT_AC_FAN_MODE_AUTO_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_AUTO_PIC_INACTIVE); + this->displayAdapter->print(fan_speed == 0 ? COMPONENT_AC_FAN_MODE_AUTO_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_AUTO_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("fan_1_btn.pic="); - this->displayAdapter->println(fan_speed == 1 ? COMPONENT_AC_FAN_MODE_HIGH_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_HIGH_PIC_INACTIVE); + this->displayAdapter->print(fan_speed == 1 ? COMPONENT_AC_FAN_MODE_HIGH_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_HIGH_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("fan_2_btn.pic="); - this->displayAdapter->println(fan_speed == 2 ? COMPONENT_AC_FAN_MODE_MEDIUM_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_MEDIUM_PIC_INACTIVE); + this->displayAdapter->print(fan_speed == 2 ? COMPONENT_AC_FAN_MODE_MEDIUM_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_MEDIUM_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("fan_3_btn.pic="); - this->displayAdapter->println(fan_speed == 3 ? COMPONENT_AC_FAN_MODE_LOW_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_LOW_PIC_INACTIVE); + this->displayAdapter->print(fan_speed == 3 ? COMPONENT_AC_FAN_MODE_LOW_PIC_ACTIVE : COMPONENT_AC_FAN_MODE_LOW_PIC_INACTIVE); this->sendStopBytes(); this->displayAdapter->print("temp_txt.txt="); - this->displayAdapter->println(temperature); + this->displayAdapter->print(temperature); this->displayAdapter->print("C"); this->sendStopBytes(); }