Adjust timings for Gree I-Feel messages
This commit is contained in:
parent
bc737c0c80
commit
28f6da295b
|
@ -329,14 +329,14 @@ void GreeYACHeatpumpIR::send(IRSender& IR, uint8_t currentTemperature)
|
|||
IR.setFrequency(38);
|
||||
|
||||
// Send Header mark
|
||||
IR.mark(GREE_AIRCON1_HDR_MARK);
|
||||
IR.space(GREE_AIRCON1_HDR_SPACE);
|
||||
IR.mark(GREE_YAC_HDR_MARK);
|
||||
IR.space(GREE_YAC_HDR_SPACE);
|
||||
|
||||
// send payload
|
||||
IR.sendIRbyte(GreeTemplate[0], GREE_AIRCON1_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
|
||||
IR.sendIRbyte(GreeTemplate[1], GREE_AIRCON1_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
|
||||
IR.sendIRbyte(GreeTemplate[0], GREE_YAC_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
|
||||
IR.sendIRbyte(GreeTemplate[1], GREE_YAC_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
|
||||
|
||||
// End mark
|
||||
IR.mark(GREE_AIRCON1_BIT_MARK);
|
||||
IR.mark(GREE_YAC_BIT_MARK);
|
||||
IR.space(0);
|
||||
}
|
|
@ -14,6 +14,11 @@
|
|||
#define GREE_AIRCON1_ZERO_SPACE 540
|
||||
#define GREE_AIRCON1_MSG_SPACE 19000
|
||||
|
||||
// Timing specific for YAC features (I-Feel mode)
|
||||
#define GREE_YAC_HDR_MARK 6000
|
||||
#define GREE_YAC_HDR_SPACE 3000
|
||||
#define GREE_YAC_BIT_MARK 650
|
||||
|
||||
// Power state
|
||||
#define GREE_AIRCON1_POWER_OFF 0x00
|
||||
#define GREE_AIRCON1_POWER_ON 0x08
|
||||
|
|
Loading…
Reference in New Issue