Fix compiler warnings about PROGMEM use
This commit is contained in:
@@ -145,7 +145,7 @@ void CarrierHeatpumpIR::sendCarrier(IRSender& IR, byte operatingMode, byte fanSp
|
||||
IR.space(CARRIER_AIRCON1_HDR_SPACE);
|
||||
|
||||
// Payload
|
||||
for (int i=0; i<sizeof(sendBuffer); i++) {
|
||||
for (size_t i=0; i<sizeof(sendBuffer); i++) {
|
||||
IR.sendIRByte(sendBuffer[i], CARRIER_AIRCON1_BIT_MARK, CARRIER_AIRCON1_ZERO_SPACE, CARRIER_AIRCON1_ONE_SPACE);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ void CarrierHeatpumpIR::sendCarrier(IRSender& IR, byte operatingMode, byte fanSp
|
||||
IR.space(CARRIER_AIRCON1_HDR_SPACE);
|
||||
|
||||
// Payload again
|
||||
for (int i=0; i<sizeof(sendBuffer); i++) {
|
||||
for (size_t i=0; i<sizeof(sendBuffer); i++) {
|
||||
IR.sendIRByte(sendBuffer[i], CARRIER_AIRCON1_BIT_MARK, CARRIER_AIRCON1_ZERO_SPACE, CARRIER_AIRCON1_ONE_SPACE);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ class HeatpumpIR
|
||||
{
|
||||
protected:
|
||||
HeatpumpIR(); // Cannot create generic heatpump instances
|
||||
const char PROGMEM* _model;
|
||||
const char PROGMEM* _info;
|
||||
const char * _model;
|
||||
const char * _info;
|
||||
|
||||
public:
|
||||
virtual void send(IRSender& IR, byte powerModeCmd, byte operatingModeCmd, byte fanSpeedCmd, byte temperatureCmd, byte swingVCmd, byte swingHCmd);
|
||||
|
||||
@@ -197,7 +197,7 @@ void MitsubishiHeatpumpIR::sendMitsubishi(IRSender& IR, byte powerMode, byte ope
|
||||
IR.space(MITSUBISHI_AIRCON1_HDR_SPACE);
|
||||
|
||||
// Data
|
||||
for (int i=0; i<sizeof(MitsubishiTemplate); i++) {
|
||||
for (unsigned int i=0; i<sizeof(MitsubishiTemplate); i++) {
|
||||
IR.sendIRByte(MitsubishiTemplate[i], MITSUBISHI_AIRCON1_BIT_MARK, MITSUBISHI_AIRCON1_ZERO_SPACE, MITSUBISHI_AIRCON1_ONE_SPACE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user