Skip to content

Commit 726e598

Browse files
committed
remove delay after connected
1 parent 6bd9a44 commit 726e598

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/NetworkConfigurator.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ bool NetworkConfigurator::end() {
135135

136136
NetworkConfigurator::ConnectionResult NetworkConfigurator::connectToNetwork(StatusMessage *err) {
137137
ConnectionResult res = ConnectionResult::IN_PROGRESS;
138-
// DEBUG_DEBUG("Connecting to network");
139-
//printNetworkSettings();
138+
140139
if (_startConnectionAttempt == 0) {
141140
_startConnectionAttempt = millis();
142141
}
@@ -147,7 +146,6 @@ NetworkConfigurator::ConnectionResult NetworkConfigurator::connectToNetwork(Stat
147146
_startConnectionAttempt = 0;
148147
DEBUG_INFO("Connected to network");
149148
sendStatus(StatusMessage::CONNECTED);
150-
delay(3000); //TODO remove
151149
res = ConnectionResult::SUCCESS;
152150
} else if (connectionRes != NetworkConnectionState::CONNECTED && millis() - _startConnectionAttempt > NC_CONNECTION_TIMEOUT) //connection attempt failed
153151
{

0 commit comments

Comments
 (0)