File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,7 @@ class Modbus
184184 void buildException ( uint8_t u8exception ); // build exception message
185185
186186public:
187- template <typename T_Stream>
188- Modbus (uint8_t u8id, T_Stream& port, uint8_t u8txenpin =0 );
187+ Modbus (uint8_t u8id, Stream& port, uint8_t u8txenpin =0 );
189188
190189 void start ();
191190 void setTimeOut ( uint16_t u16timeOut); // !<write communication watch-dog timer
@@ -247,8 +246,7 @@ class Modbus
247246 * @param u8txenpin pin for txen RS-485 (=0 means USB/RS232C mode)
248247 * @ingroup setup
249248 */
250- template <typename T_Stream>
251- Modbus::Modbus (uint8_t u8id, T_Stream& port, uint8_t u8txenpin)
249+ Modbus::Modbus (uint8_t u8id, Stream& port, uint8_t u8txenpin)
252250{
253251 this ->port = &port;
254252 this ->u8id = u8id;
You can’t perform that action at this time.
0 commit comments