Browse Source

Delete not required files. Update FastLed Lib back to 3.3.3. Led Error is shown when audio lib is returning an error

master
grch101 5 years ago
committed by Torsten Stauder
parent
commit
45c603f71c
  1. 6
      platformio.ini
  2. 6
      src/main.cpp

6
platformio.ini

@ -38,8 +38,8 @@ monitor_speed = 115200
board_build.partitions = no_ota.csv
lib_deps = ${env:common.lib_deps}
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.SLAB_USBtoUART
upload_port = COM6
monitor_port = COM6
[env:nodemcu-32s]
platform = espressif32
@ -75,7 +75,7 @@ lib_deps =
https://github.com/madhephaestus/ESP32Encoder.git
https://github.com/knolleary/pubsubclient.git
https://github.com/biologist79/ESP32FTPServer.git
https://github.com/FastLED/FastLED.git
https://github.com/FastLED/FastLED.git#3.3.3
https://github.com/biologist79/rfid.git
https://github.com/tueddy/PN5180-Library.git
ESP Async WebServer

6
src/main.cpp

@ -1558,6 +1558,9 @@ void playAudio(void *parameter) {
audioReturnCode = audio.connecttoFS(FSystem, *(playProperties.playlist + playProperties.currentTrackNumber));
// consider track as finished, when audio lib call was not successful
if (!audioReturnCode) {
#ifdef NEOPIXEL_ENABLE
showLedError = true;
#endif
playProperties.trackFinished = true;
continue;
}
@ -1696,6 +1699,9 @@ void playAudio(void *parameter) {
audioReturnCode = audio.connecttoFS(FSystem, *(playProperties.playlist + playProperties.currentTrackNumber));
// consider track as finished, when audio lib call was not successful
if(!audioReturnCode) {
#ifdef NEOPIXEL_ENABLE
showLedError = true;
#endif
playProperties.trackFinished = true;
continue;
}

Loading…
Cancel
Save