Changeset 16 for trunk/Arduino
- Timestamp:
- Aug 14, 2019, 11:15:45 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/Arduino/libraries/OT_Slave/OT_Slave.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Arduino/libraries/OT_Slave/OT_Slave.cpp
r15 r16 1 1 #include "OT_Slave.h" 2 2 3 #define THERMOSTAT_IN 2 4 #define THERMOSTAT_OUT 4 5 6 // OpenthermData OT_Slave::message; 3 #ifndef _SIM_T_BOILER_ 4 #define _SIM_T_BOILER_ 1 5 #endif 6 #ifndef _SIM_T_RET_ 7 #define _SIM_T_RET_ 1 8 #endif 9 10 #define THERMOSTAT_IN 2 11 #define THERMOSTAT_OUT 4 7 12 8 13 uint32_t OT_Action::OTD2uint32 (const OpenthermData& data) … … 82 87 break; 83 88 case OT_MSGID_FEED_TEMP: // 25 (Boiler water temperature) [M:ReadAck|DataInvalid] 84 // action.response.type = OT_MSGTYPE_DATA_INVALID; 89 #if _SIM_T_BOILER_ 85 90 action.response.type = OT_MSGTYPE_READ_ACK; 86 91 action.response.f88(GetBoilerTemperature()); 87 break; 92 #else 93 action.response.type = OT_MSGTYPE_DATA_INVALID; 94 #endif 95 break; 96 #if _SIM_T_RET_ 88 97 case OT_MSGID_RETURN_WATER_TEMP: // 28 (Return water temperature) 89 98 action.response.type = OT_MSGTYPE_READ_ACK; 90 99 action.response.f88(GetReturnTemperature()); 91 100 break; 101 #endif 92 102 case OT_MSGID_DHW_SETPOINT: // 56 (DHW setpoint) 93 103 if (action.request.type == OT_MSGTYPE_READ_DATA) {
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/Paradigma/chrome/site/paradigma.png)