Skip to content

Commit 75fadac

Browse files
author
Travis CI
committed
keep state consistent while debugging
1 parent 220efa6 commit 75fadac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

particle/examples/local-compile/local-compile.ino

+4-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void loop() {
112112
Serial.print(configSize);
113113
Serial.print(F(" bytes written while broadcasting pins"));
114114
}
115-
115+
116116
Spark.process();
117117
}
118118

@@ -129,6 +129,8 @@ void readData() {
129129
}
130130

131131
void connectToServer() {
132+
hasAuthenticated = false;
133+
132134
Serial.println(F("Connecting to the server."));
133135
Serial.flush();
134136

@@ -143,6 +145,7 @@ void connectToServer() {
143145
}
144146

145147
void connectToLocalServer() {
148+
hasAuthenticated = false;
146149
Serial.println(F("Connecting to local server."));
147150
Serial.flush();
148151

0 commit comments

Comments
 (0)