Skip to content

Commit

Permalink
Remove useless ->stop() lines
Browse files Browse the repository at this point in the history
  • Loading branch information
emelianov committed May 13, 2019
1 parent 3b1cbe2 commit 9cadf5d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ModbusIP_ESP8266.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ void ModbusIP::autoConnect(bool enabled) {

bool ModbusIP::disconnect(IPAddress ip) {
int8_t p = getSlave(ip);
//if (p != -1) client[p]->stop();
if (p != -1) {
delete client[p];
client[p] = nullptr;
Expand All @@ -425,7 +424,6 @@ ModbusIP::~ModbusIP() {
dropTransactions();
cleanup();
for (uint8_t i = 0; i < MODBUSIP_MAX_CLIENTS; i++) {
//client[i]->stop();
delete client[i];
client[i] = nullptr;
}
Expand Down

0 comments on commit 9cadf5d

Please sign in to comment.