diff --git a/libraries/HeatpumpIR/CarrierHeatpumpIR.cpp b/libraries/HeatpumpIR/CarrierHeatpumpIR.cpp index 55fe332..026c1aa 100644 --- a/libraries/HeatpumpIR/CarrierHeatpumpIR.cpp +++ b/libraries/HeatpumpIR/CarrierHeatpumpIR.cpp @@ -12,6 +12,9 @@ CarrierHeatpumpIR::CarrierHeatpumpIR() : HeatpumpIR() void CarrierHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd, byte fanSpeedCmd, byte temperatureCmd, byte swingVCmd, byte swingHCmd) { + (void)swingVCmd; + (void)swingHCmd; + // Sensible defaults for the heat pump mode byte operatingMode = CARRIER_AIRCON1_MODE_HEAT; diff --git a/libraries/HeatpumpIR/HeatpumpIR.cpp b/libraries/HeatpumpIR/HeatpumpIR.cpp index a741ea4..7f7f60a 100644 --- a/libraries/HeatpumpIR/HeatpumpIR.cpp +++ b/libraries/HeatpumpIR/HeatpumpIR.cpp @@ -5,7 +5,7 @@ HeatpumpIR::HeatpumpIR() } // This is a virtual function, i.e. never called -void HeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd, byte fanSpeedCmd, byte temperatureCmd, byte swingVCmd, byte swingHCmd) +void HeatpumpIR::send(IRSender&, byte, byte, byte, byte, byte, byte) { } diff --git a/libraries/HeatpumpIR/HisenseHeatpumpIR.cpp b/libraries/HeatpumpIR/HisenseHeatpumpIR.cpp index 542ceb9..5f7dd85 100644 --- a/libraries/HeatpumpIR/HisenseHeatpumpIR.cpp +++ b/libraries/HeatpumpIR/HisenseHeatpumpIR.cpp @@ -12,6 +12,9 @@ HisenseHeatpumpIR::HisenseHeatpumpIR() : HeatpumpIR() void HisenseHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd , byte fanSpeedCmd , byte temperatureCmd , byte swingVCmd , byte swingHCmd ) { + (void)swingVCmd; + (void)swingHCmd; + // Sensible defaults for the heat pump mode byte powerMode = HISENSE_AIRCON1_POWER_ON; @@ -47,7 +50,7 @@ void HisenseHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingMode operatingMode = HISENSE_AIRCON1_MODE_FAN; if ( fanSpeedCmd == FAN_AUTO ) { fanSpeedCmd = FAN_1; // Fan speed cannot be 'AUTO' in FAN mode - temperatureCmd = 25; // Fixed temperature FAN mode + temperatureCmd = 25; // Fixed temperature FAN mode } break; } @@ -66,7 +69,7 @@ void HisenseHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingMode break; case FAN_3: fanSpeed = HISENSE_AIRCON1_FAN3; - break; + break; } if ( temperatureCmd > 17 && temperatureCmd < 33) @@ -81,6 +84,9 @@ void HisenseHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingMode // Send the Hisense code void HisenseHeatpumpIR::sendHisense(IRSender& IR, byte powerMode, byte operatingMode, byte fanSpeed, byte temperature, byte swingV ,byte swingH) { + (void)swingV; + (void)swingH; + byte HisenseTemplate[] = { 0x87, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, // Header byte 0-1 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00 }; // diff --git a/libraries/HeatpumpIR/MideaHeatpumpIR.cpp b/libraries/HeatpumpIR/MideaHeatpumpIR.cpp index faec8ed..04e709d 100644 --- a/libraries/HeatpumpIR/MideaHeatpumpIR.cpp +++ b/libraries/HeatpumpIR/MideaHeatpumpIR.cpp @@ -12,6 +12,9 @@ MideaHeatpumpIR::MideaHeatpumpIR() : HeatpumpIR() void MideaHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd, byte fanSpeedCmd, byte temperatureCmd, byte swingVCmd, byte swingHCmd) { + (void)swingVCmd; + (void)swingHCmd; + // Sensible defaults for the heat pump mode byte operatingMode = MIDEA_AIRCON1_MODE_HEAT; byte fanSpeed = MIDEA_AIRCON1_FAN_AUTO; diff --git a/libraries/HeatpumpIR/SamsungHeatpumpIR.cpp b/libraries/HeatpumpIR/SamsungHeatpumpIR.cpp index 274504f..b932baf 100644 --- a/libraries/HeatpumpIR/SamsungHeatpumpIR.cpp +++ b/libraries/HeatpumpIR/SamsungHeatpumpIR.cpp @@ -12,6 +12,9 @@ SamsungHeatpumpIR::SamsungHeatpumpIR() : HeatpumpIR() void SamsungHeatpumpIR::send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd, byte fanSpeedCmd, byte temperatureCmd, byte swingVCmd, byte swingHCmd) { + (void)swingVCmd; + (void)swingHCmd; + // Sensible defaults for the heat pump mode byte powerMode = SAMSUNG_AIRCON1_MODE_ON;