diff --git a/source/shoh/src/threads/relay/Relay.cpp b/source/shoh/src/threads/relay/Relay.cpp index 9b4cbad..9e3adb7 100644 --- a/source/shoh/src/threads/relay/Relay.cpp +++ b/source/shoh/src/threads/relay/Relay.cpp @@ -10,14 +10,11 @@ #include "Log.h" // TODO Remove en pins -RelayDevice::RelayDevice(uint8_t en_pin, - uint8_t en_port, - uint8_t pha_pin, +RelayDevice::RelayDevice(uint8_t pha_pin, uint8_t pha_port, uint8_t relay_device_index ) { - en = new DigitalIoPin(en_pin, en_port, false); pha = new DigitalIoPin(pha_pin, pha_port, false); LOG_DEBUG("Creating RelayDevice"); } diff --git a/source/shoh/src/threads/relay/Relay.h b/source/shoh/src/threads/relay/Relay.h index 0a7b8bc..b46c2d2 100644 --- a/source/shoh/src/threads/relay/Relay.h +++ b/source/shoh/src/threads/relay/Relay.h @@ -14,14 +14,11 @@ class RelayDevice { public: - RelayDevice(uint8_t en_pin, - uint8_t en_port, - uint8_t pha_pin, + RelayDevice(uint8_t pha_pin, uint8_t pha_port, uint8_t relay_device_index); virtual ~RelayDevice(); private: - DigitalIoPin * en; DigitalIoPin * pha; }; @@ -32,8 +29,8 @@ public: void taskFunction(); private: ThreadCommon::QueueManager* _qm; - RelayDevice relays [2] = {{0, 23, 0, 24, 0}, - {0, 25, 0, 26, 1}}; + RelayDevice relays [2] = {{0, 24, 0}, + {0, 26, 1}}; void parseEvent(Event * d); int8_t setpoint, ext_temp;