@@ -149,11 +149,9 @@ void setup() {
149
149
// Do this setup for all modes exect wifi setup
150
150
switch (runMode) {
151
151
case RunMode::wifiSetupMode:
152
- #if !defined(ESP32C3) && !defined(ESP8266)
153
152
// We cant use LED on ESP32C3 since that pin is connected to GYRO
154
153
ledOn (LedColor::RED); // Red or fast flashing to indicate connection
155
154
// error
156
- #endif
157
155
myWifi.startAP ();
158
156
break ;
159
157
@@ -207,10 +205,8 @@ void setup() {
207
205
case RunMode::configurationMode:
208
206
if (myWifi.isConnected ()) {
209
207
Log.notice (F (" Main: Activating web server." CR));
210
- #if !defined(ESP32C3) && !defined(ESP8266)
211
208
// We cant use LED on ESP32C3 since that pin is connected to GYRO
212
209
ledOn (LedColor::BLUE); // Blue or slow flashing to indicate config mode
213
- #endif
214
210
PERF_BEGIN (" main-wifi-ota" );
215
211
if (myOta.checkFirmwareVersion ()) myOta.updateFirmware ();
216
212
PERF_END (" main-wifi-ota" );
@@ -220,22 +216,18 @@ void setup() {
220
216
mySerialWebSocket.begin (myWebServer.getWebServer (), &Serial);
221
217
mySerial.begin (&mySerialWebSocket);
222
218
} else {
223
- #if !defined(ESP32C3) && !defined(ESP8266)
224
219
// We cant use LED on ESP32C3 since that pin is connected to GYRO
225
220
ledOn (LedColor::RED); // Red or fast flashing to indicate connection
226
- #endif
227
221
// error
228
222
}
229
223
230
224
interval = 1000 ; // Change interval from 200ms to 1s
231
225
break ;
232
226
233
227
default :
234
- #if !defined(ESP32C3) && !defined(ESP8266)
235
228
// We cant use LED on ESP32C3 since that pin is connected to GYRO
236
229
ledOn (
237
230
LedColor::GREEN); // Green or fast flashing to indicate gravity mode
238
- #endif
239
231
break ;
240
232
}
241
233
0 commit comments