Skip to content

Commit 1fb88ed

Browse files
committed
Cosmetic fixes
1 parent 516512d commit 1fb88ed

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

usermods/audioreactive/audio_reactive.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3195,7 +3195,6 @@ void AudioReactive::createAudioPalettes(void) {
31953195
// credit @netmindz ar palette, adapted for usermod @blazoncek
31963196
CRGBA AudioReactive::getCRGBForBand(int x, int pal) {
31973197
CRGBA value;
3198-
CHSV32 hsv;
31993198
int b;
32003199
switch (pal) {
32013200
case 2:

wled00/FX_fcn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,9 +2070,9 @@ bool WS2812FX::deserializeMap(unsigned n) {
20702070
suspend();
20712071
waitForIt();
20722072

2073-
JsonObject root = pDoc->as<JsonObject>();
20742073
#ifndef WLED_DISABLE_2D
20752074
// if we are loading default ledmap (at boot) set matrix width and height from the ledmap (compatible with WLED MM ledmaps)
2075+
JsonObject root = pDoc->as<JsonObject>();
20762076
if (n == 0 && (!root[F("width")].isNull() || !root[F("height")].isNull())) {
20772077
Segment::maxWidth = min(max(root[F("width")].as<int>(), 1), 255);
20782078
Segment::maxHeight = min(max(root[F("height")].as<int>(), 1), 255);

wled00/wled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,6 @@ ESP-NOW inited in AP mode (channel: 6/1).
902902
}
903903

904904
const bool isSTAmode = WiFi.getMode() & WIFI_MODE_STA;
905-
const bool isAPmode = WiFi.getMode() & WIFI_MODE_AP;
906905

907906
if (!apActive) {
908907
// WiFi is not configured and soft AP is not yet open
@@ -955,6 +954,7 @@ ESP-NOW inited in AP mode (channel: 6/1).
955954
}
956955

957956
#ifndef WLED_DISABLE_ESPNOW
957+
const bool isAPmode = WiFi.getMode() & WIFI_MODE_AP;
958958
const bool isESPNowMasterDefined = masterRemotes.size() > 0;
959959

960960
// if we are syncing via ESP-NOW and master has not been heard in a while we shoud retry WiFi

0 commit comments

Comments
 (0)