From be968c26cda5bcd110e8195fc93054c09f8b3a51 Mon Sep 17 00:00:00 2001 From: Clifford Roche Date: Tue, 2 Nov 2021 19:04:23 -0400 Subject: [PATCH] Add base function for sending ambient temperature --- HeatpumpIR.cpp | 5 +++++ HeatpumpIR.h | 1 + 2 files changed, 6 insertions(+) diff --git a/HeatpumpIR.cpp b/HeatpumpIR.cpp index 1a4fd99..e681caa 100644 --- a/HeatpumpIR.cpp +++ b/HeatpumpIR.cpp @@ -13,6 +13,11 @@ void HeatpumpIR::send(IRSender&, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, ui { } +// Send ambient temperature. This is a virtual function, i.e. never called +void HeatpumpIR::send(IRSender&, uint8_t) +{ +} + // Heatpump model and info getters const char PROGMEM* HeatpumpIR::model() { diff --git a/HeatpumpIR.h b/HeatpumpIR.h index 22b6536..0538544 100644 --- a/HeatpumpIR.h +++ b/HeatpumpIR.h @@ -63,6 +63,7 @@ class HeatpumpIR public: virtual void send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd); + virtual void send(IRSender& IR, uint8_t currentTemperature); const char PROGMEM* model(); const char PROGMEM* info(); virtual ~HeatpumpIR();