Skip to content

Commit 9cadf5d

Browse files
committed
Remove useless ->stop() lines
1 parent 3b1cbe2 commit 9cadf5d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ModbusIP_ESP8266.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ void ModbusIP::autoConnect(bool enabled) {
408408

409409
bool ModbusIP::disconnect(IPAddress ip) {
410410
int8_t p = getSlave(ip);
411-
//if (p != -1) client[p]->stop();
412411
if (p != -1) {
413412
delete client[p];
414413
client[p] = nullptr;
@@ -425,7 +424,6 @@ ModbusIP::~ModbusIP() {
425424
dropTransactions();
426425
cleanup();
427426
for (uint8_t i = 0; i < MODBUSIP_MAX_CLIENTS; i++) {
428-
//client[i]->stop();
429427
delete client[i];
430428
client[i] = nullptr;
431429
}

0 commit comments

Comments
 (0)