Ignore:
Timestamp:
Aug 14, 2019, 11:15:45 PM (7 years ago)
Author:
markus
Message:

Boiler temperature simulation is controlled by defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Arduino/libraries/OT_Slave/OT_Slave.cpp

    r15 r16  
    11#include "OT_Slave.h"
    22
    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
    712
    813uint32_t        OT_Action::OTD2uint32 (const OpenthermData& data)
    … …  
    8287      break;
    8388    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_
    8590      action.response.type = OT_MSGTYPE_READ_ACK;
    8691      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_
    8897    case OT_MSGID_RETURN_WATER_TEMP: // 28 (Return water temperature)
    8998      action.response.type = OT_MSGTYPE_READ_ACK;
    9099      action.response.f88(GetReturnTemperature());
    91100      break;
     101#endif
    92102    case OT_MSGID_DHW_SETPOINT: // 56 (DHW setpoint)
    93103      if (action.request.type == OT_MSGTYPE_READ_DATA) {
Note: See TracChangeset for help on using the changeset viewer.