Closed abstractBoyd closed 1 month ago
which is the last known version that works ?
v4.0.4 is using ESP32 Arduino Core 2.0.15, and has some bugs... I'll try to update it to 2.0.16 soon
mmmm.. has nothing to do with arduino core.
so, what happens is that setColorLED()
is trying to send a packet, but the buffer is full. I should refactor that code.
...but you should avoid calling setColorLED()
that frequently.
you can add something like:
// pseudo code
if (ledcolor != (0,0,0))
setColorLED(0,0,0);
or stuff like that
which is the last known version that works ?
v4.0.4 is using ESP32 Arduino Core 2.0.15, and has some bugs... I'll try to update it to 2.0.16 soon
3.7.0 is the last one I checked that seemed to work with that code.
mmmm.. has nothing to do with arduino core.
so, what happens is that
setColorLED()
is trying to send a packet, but the buffer is full. I should refactor that code....but you should avoid calling
setColorLED()
that frequently.
Absolutely, I immediately updated our code as soon as I noticed what it was doing - in my defense, it's inherited code :)
I am thankful that the bug revealed the inefficiency in our code, and I simply hope to return the favor and help make your code better as well :)
great!
(I'm closing the bug... only because this is the "expected" behavior... using a vTaskDelay(1)
and calling setColorLED()
will flood the circular buffer).
Feel free to re-open if you think otherwise (if so, explain why).
Thanks
What happened?
I ran into an issue recently with the Arduino ESP32 libraries, a program that used to work fine suddenly stopped working after I updated the board driver to esp32_bluepad 4.0.4. The output I was seeing was the attached pictures with a lot of that repeating error message in between
Bluepad32 Version
Other
Bluepad32 version custom
Arduino esp32_bluepad32 version 4.0.4
Bluepad32 Platform
Arduino IDE
Platform version
Arduino IDE 2.2.1
Controller
DualSense 4 (offbrand)
Microcontroller
ESP32
Microcontroller board
ESP32-WROOM DevKit
OS
Windows
Relevant log output
Relevant sketch