Skip to content

Commit 44a9fed

Browse files
committed
Fix more warnings
1 parent cfc346a commit 44a9fed

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ lib_deps =
184184
AsyncTCP @ 1.0.3
185185
IRremoteESP8266 @ 2.7.3
186186
https://github.com/lorol/LITTLEFS.git
187-
https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.0
187+
https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.1
188188
#For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line
189189
#TFT_eSPI
190190
#For use SSD1306 OLED display uncomment following

wled00/FX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ uint16_t WS2812FX::dissolve(uint32_t color) {
545545
}
546546
}
547547

548-
if (SEGENV.call > (255 - SEGMENT.speed) + 15)
548+
if (SEGENV.call > (255 - SEGMENT.speed) + 15U)
549549
{
550550
SEGENV.aux0 = !SEGENV.aux0;
551551
SEGENV.call = 0;
@@ -1034,7 +1034,7 @@ uint16_t WS2812FX::mode_running_random(void) {
10341034
}
10351035

10361036
SEGENV.step++;
1037-
if (SEGENV.step > ((255-SEGMENT.intensity) >> 4))
1037+
if (SEGENV.step > (uint8_t)((255-SEGMENT.intensity) >> 4))
10381038
{
10391039
SEGENV.step = 0;
10401040
}

wled00/json.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ bool deserializeState(JsonObject root)
200200
receiveNotifications = udpn[F("recv")] | receiveNotifications;
201201
bool noNotification = udpn[F("nn")]; //send no notification just for this request
202202

203-
unsigned long timein = root[F("time")] | -1;
204-
if (timein != -1) {
203+
unsigned long timein = root[F("time")] | UINT32_MAX;
204+
if (timein != UINT32_MAX) {
205205
if (millis() - ntpLastSyncTime > 50000000L) setTime(timein);
206206
if (presetsModifiedTime == 0) presetsModifiedTime = timein;
207207
}

wled00/src/dependencies/blynk/BlynkSimpleEsp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ class BlynkWifi
4545
}
4646
BLYNK_LOG1(BLYNK_F("Connected to WiFi"));
4747

48-
IPAddress myip = WiFi.localIP();
49-
BLYNK_LOG_IP("IP: ", myip);
48+
BLYNK_LOG_IP("IP: ", WiFi.localIP());
5049
}
5150

5251
void config(const char* auth,

0 commit comments

Comments
 (0)