Skip to content

Commit

Permalink
Bugfix - E131 buffer alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkywafer committed Oct 15, 2019
1 parent 8e9fce0 commit 2660955
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PinkyLEDs/PinkyLEDs.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* | | | | | \ / | |_______ |_____/ \_____/
* \________________________________________/ |________________________________________/
*/
#define VERSION "0.10.0"
#define VERSION "0.10.1"

#include <ArduinoJson.h>
#ifdef ESP32
Expand Down Expand Up @@ -442,10 +442,11 @@ void setup() {
#endif
#ifdef ENABLE_E131
if ( (NUM_LEDS % 170) > 0 ){
universesRequired = (NUM_LEDS / 170);
} else {
universesRequired = (NUM_LEDS / 170) + 1;
} else {
universesRequired = (NUM_LEDS / 170);
}
Serial.println(universesRequired);
e131 = new ESPAsyncE131(universesRequired);
e131->begin(E131_UNICAST);
#ifdef DEBUG
Expand Down

0 comments on commit 2660955

Please sign in to comment.