Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Metrich committed Feb 28, 2024
1 parent 47b9ebe commit a8160a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mk2_3phase_RFdatalog_temp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ inline constexpr bool OVERRIDE_PIN_PRESENT{ false }; /**< set
#endif

inline constexpr bool WATCHDOG_PIN_PRESENT{ false }; /**< set it to 'true' if there's a watch led */
inline constexpr bool RELAY_DIVERSION{ false }; /**< set it to 'true' if a relay is used for diversion */
inline constexpr bool RELAY_DIVERSION{ true }; /**< 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 */

// ----------- Pinout assignments -----------
Expand Down Expand Up @@ -84,8 +84,8 @@ inline constexpr uint8_t watchDogPin{ 0xff }; /**< watch dog LED */

inline constexpr uint8_t tempSensorPin{ 0xff }; /**< for 3-phase PCB, sensor pin */

//inline constexpr RelayEngine relays{ { { 4, 1000, 200, 1, 1 }, { 6, 1000, 200, 1, 1 }, { 8, 1000, 200, 1, 1 } } }; /**< config for relay diversion, see class definition for defaults and advanced options */
inline constexpr RelayEngine relays{ { { 0xff, 1000, 200, 1, 1 }, { 0xff, 1000, 200, 1, 1 }, { 0xff, 1000, 200, 1, 1 } } }; /**< config for relay diversion, see class definition for defaults and advanced options */
inline constexpr RelayEngine relays{ { { 4, 1000, 200, 1, 1 }, { 6, 1000, 200, 1, 1 }, { 8, 1000, 200, 1, 1 } } }; /**< config for relay diversion, see class definition for defaults and advanced options */
//inline constexpr RelayEngine relays{ { { 0xff, 1000, 200, 1, 1 }, { 0xff, 1000, 200, 1, 1 }, { 0xff, 1000, 200, 1, 1 } } }; /**< config for relay diversion, see class definition for defaults and advanced options */

//static_assert(myRelayArray.get_relay< 0 >().get_pin() == 2);
//static_assert(myRelayArray.get_relay< 1 >().get_pin() == 4);
Expand Down
2 changes: 2 additions & 0 deletions Mk2_3phase_RFdatalog_temp/utils_relay.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ class RelayEngine
void printConfiguration() const
{
Serial.println(F("\t*** Relay(s) configuration ***"));
Serial.print(F("\t\tSliding average: "));
Serial.println(D);

for (uint8_t i = 0; i < N; ++i)
{
Expand Down

0 comments on commit a8160a0

Please sign in to comment.