rename ifeel -> ifeelreport

This commit is contained in:
yoziru 2024-08-04 21:21:23 +02:00
parent 4b2c456d45
commit f6b753a1ea
2 changed files with 4 additions and 4 deletions

View file

@ -128,11 +128,11 @@ void ArgoUlisseClimate::transmit_ifeel_() {
ifeel_packet.IrChannel = 0; // Assume channel 0, adjust if needed
ifeel_packet.IrCommandType = ArgoIRMessageType_IFEEL_TEMP_REPORT;
ifeel_packet.ifeel.SensorT = this->sensor_temperature_();
ifeel_packet.ifeelreport.SensorT = this->sensor_temperature_();
// Calculate 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
auto transmit = this->transmitter_->transmit();

View file

@ -84,13 +84,13 @@ union ArgoProtocolWREM3 {
// Byte5
uint8_t Sum : 8; /// Checksum
};
struct iFeel {
struct iFeelReport {
// Byte 0 (same definition across the union)
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}
// Byte 1
uint8_t SensorT : 5; // in Celsius, range: 4..35 (offset by -4[*C])
uint8_t CheckHi : 3; // Checksum (short)
} ifeel;
} ifeelreport;
struct Timer {
// Byte 0 (same definition across the union)
uint8_t : 8; // {Pre1 | IrChannel | IrCommandType}