Fix compiler warnings about unused parameters

This commit is contained in:
ToniA
2015-09-30 08:45:17 +03:00
parent f58fc601a4
commit 1b120d7520
5 changed files with 18 additions and 3 deletions
@@ -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;
+1 -1
View File
@@ -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)
{
}
+8 -2
View File
@@ -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 }; //
+3
View File
@@ -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;
@@ -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;