Skip to content

Commit

Permalink
Update display type configuration and make temperature sensor methods…
Browse files Browse the repository at this point in the history
… const
  • Loading branch information
FredM67 committed Dec 27, 2024
1 parent 162808c commit 834523a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Mk2_fasterControl_Full/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ inline constexpr bool WATCHDOG_PIN_PRESENT{ false }; /**< set it to 'true' if th
inline constexpr bool RELAY_DIVERSION{ false }; /**< set it to 'true' if a relay is used for diversion */
inline constexpr bool DUAL_TARIFF{ false }; /**< set it to 'true' if there's a dual tariff each day AND the router is connected to the billing meter */

inline constexpr DisplayType TYPE_OF_DISPLAY{ DisplayType::OLED }; /**< set it to installed display including optional additional logic chips */
inline constexpr DisplayType TYPE_OF_DISPLAY{ DisplayType::NONE }; /**< set it to installed display including optional additional logic chips */

////////////////////////////////////////////////////////////////////////////////////////
// allocation of digital pins which are not dependent on the display type that is in use
Expand Down
6 changes: 3 additions & 3 deletions Mk2_fasterControl_Full/utils_temp.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TemperatureSensing
* @brief Request temperature for all sensors
*
*/
void requestTemperatures()
void requestTemperatures() const
{
#ifdef TEMP_ENABLED
oneWire.reset();
Expand All @@ -80,7 +80,7 @@ class TemperatureSensing
* @brief Initialize the Dallas sensors
*
*/
void initTemperatureSensors()
void initTemperatureSensors() const
{
#ifdef TEMP_ENABLED
oneWire.begin(sensorPin);
Expand Down Expand Up @@ -114,7 +114,7 @@ class TemperatureSensing
* @param idx The index of the device
* @return int16_t Temperature * 100
*/
int16_t readTemperature(const uint8_t idx)
int16_t readTemperature(const uint8_t idx) const
{
static ScratchPad buf;

Expand Down

0 comments on commit 834523a

Please sign in to comment.