Skip to content

Commit 52a97de

Browse files
Fixed compiler warnings.
1 parent b8615bd commit 52a97de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ESP8266-temp-server.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
const char WIFISSID[] = "yourSSID";
2121
const char WIFIPSK[] = "yourPSK";
2222

23+
const uint8_t ONBOARD_LED = 2;
2324
const float SENSOR_ERROR = -273.15;
2425

2526
AsyncWebServer server(80);
@@ -42,9 +43,9 @@ void setup(void)
4243
Serial.println( "No WiFi!" );
4344
while ( true )
4445
{
45-
digitalWrite( BUILTIN_LED, LOW );
46+
digitalWrite( ONBOARD_LED, LOW );
4647
delay( 100 );
47-
digitalWrite( BUILTIN_LED, HIGH );
48+
digitalWrite( ONBOARD_LED, HIGH );
4849
delay( 100 );
4950
}
5051
}

0 commit comments

Comments
 (0)