mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
rename ifeel -> ifeelreport
This commit is contained in:
parent
4b2c456d45
commit
f6b753a1ea
2 changed files with 4 additions and 4 deletions
|
@ -128,11 +128,11 @@ void ArgoUlisseClimate::transmit_ifeel_() {
|
||||||
ifeel_packet.IrChannel = 0; // Assume channel 0, adjust if needed
|
ifeel_packet.IrChannel = 0; // Assume channel 0, adjust if needed
|
||||||
ifeel_packet.IrCommandType = ArgoIRMessageType_IFEEL_TEMP_REPORT;
|
ifeel_packet.IrCommandType = ArgoIRMessageType_IFEEL_TEMP_REPORT;
|
||||||
|
|
||||||
ifeel_packet.ifeel.SensorT = this->sensor_temperature_();
|
ifeel_packet.ifeelreport.SensorT = this->sensor_temperature_();
|
||||||
|
|
||||||
// Calculate checksum
|
// Calculate checksum
|
||||||
ESP_LOGV(TAG, " Calculating iFeel checksum..");
|
ESP_LOGV(TAG, " Calculating iFeel checksum..");
|
||||||
ifeel_packet.ifeel.CheckHi = this->calc_checksum_(&ifeel_packet, ArgoIRMessageLength_IFEEL_TEMP_REPORT);
|
ifeel_packet.ifeelreport.CheckHi = this->calc_checksum_(&ifeel_packet, ArgoIRMessageLength_IFEEL_TEMP_REPORT);
|
||||||
|
|
||||||
// Transmit the IR signal
|
// Transmit the IR signal
|
||||||
auto transmit = this->transmitter_->transmit();
|
auto transmit = this->transmitter_->transmit();
|
||||||
|
|
|
@ -84,13 +84,13 @@ union ArgoProtocolWREM3 {
|
||||||
// Byte5
|
// Byte5
|
||||||
uint8_t Sum : 8; /// Checksum
|
uint8_t Sum : 8; /// Checksum
|
||||||
};
|
};
|
||||||
struct iFeel {
|
struct iFeelReport {
|
||||||
// Byte 0 (same definition across the union)
|
// Byte 0 (same definition across the union)
|
||||||
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}
|
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}
|
||||||
// Byte 1
|
// Byte 1
|
||||||
uint8_t SensorT : 5; // in Celsius, range: 4..35 (offset by -4[*C])
|
uint8_t SensorT : 5; // in Celsius, range: 4..35 (offset by -4[*C])
|
||||||
uint8_t CheckHi : 3; // Checksum (short)
|
uint8_t CheckHi : 3; // Checksum (short)
|
||||||
} ifeel;
|
} ifeelreport;
|
||||||
struct Timer {
|
struct Timer {
|
||||||
// Byte 0 (same definition across the union)
|
// Byte 0 (same definition across the union)
|
||||||
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}
|
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}
|
||||||
|
|
Loading…
Reference in a new issue