Merge branch 'master' into development
This commit is contained in:
commit
2926a68023
|
@ -37,7 +37,11 @@ void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
delay(10);
|
delay(10);
|
||||||
WiFi.begin(ssid, password);
|
WiFi.begin(ssid, password);
|
||||||
while (WiFi.status() != WL_CONNECTED) {
|
getOnline();
|
||||||
|
}
|
||||||
|
|
||||||
|
void getOnline(){
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
delay(500);
|
delay(500);
|
||||||
Serial.print(":) ");
|
Serial.print(":) ");
|
||||||
}
|
}
|
||||||
|
@ -52,6 +56,7 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
if(WiFi.status() != WL_CONNECTED) getOnline();
|
||||||
client.loop();
|
client.loop();
|
||||||
if (motorJammed == true) botMode = 3;
|
if (motorJammed == true) botMode = 3;
|
||||||
switch (botMode) {
|
switch (botMode) {
|
||||||
|
|
Loading…
Reference in New Issue