Version 2.2.5

Bugfixes
This commit is contained in:
bpohvoodoo
2019-09-08 20:56:31 +02:00
parent 8cd0a07fa0
commit 75b19fd09d
7 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ WS2812FX * strip = NULL;
void DMA_Show(void) {
if(dma->IsReadyToUpdate()) {
memcpy(dma->getPixels(), strip->getPixels(), dma->getPixelsSize());
dma->Update();
dma->Update(false);
}
}
#endif
+1
View File
@@ -1,4 +1,5 @@
#define USE_WS2812FX_DMA 0 // 0 = Used PIN is ignored & set to RX/GPIO3; 1 = Used PIN is ignored & set to D4/GPIO2; 2 = Uses PIN is ignored & set to TX/GPIO1; Uses WS2812FX, see: https://github.com/kitesurfer1404/WS2812FX
// or comment it out
#if defined(USE_WS2812FX_DMA)
#define MAXLEDS 384 // due to memory limit of esp8266 at the moment only 384 leds are supported in DMA Mode. More can crash if mqtt is used.
#else
+3 -3
View File
@@ -59,7 +59,7 @@ void convertColors() {
void getArgs() {
if (mode == SET_ALL || mode == SET_MODE || mode == SET_COLOR) {
if (mode == SET_ALL || mode == SET_COLOR) {
if (server.arg("rgb") != "") {
uint32_t rgb = (uint32_t) strtoul(server.arg("rgb").c_str(), NULL, 16);
main_color.white = ((rgb >> 24) & 0xFF);
@@ -134,7 +134,7 @@ void getArgs() {
xtra_color.white = constrain(xtra_color.white, 0, 255);
convertColors();
}
if (mode == SET_ALL || mode == SET_MODE || mode == SET_SPEED || mode == TV) {
if (mode == SET_ALL || mode == SET_SPEED || mode == TV) {
if ((server.arg("s") != "") && (server.arg("s").toInt() >= 0) && (server.arg("s").toInt() <= 255)) {
ws2812fx_speed = constrain(server.arg("s").toInt(), 0, 255);
}
@@ -144,7 +144,7 @@ void getArgs() {
ws2812fx_mode = constrain(server.arg("m").toInt(), 0, strip->getModeCount() - 1);
}
}
if (mode == SET_ALL || mode == SET_MODE || mode == SET_BRIGHTNESS || mode == AUTO || mode == TV || mode == E131) {
if (mode == SET_ALL || mode == SET_BRIGHTNESS || mode == AUTO || mode == TV || mode == E131) {
if ((server.arg("c") != "") && (server.arg("c").toInt() >= 0) && (server.arg("c").toInt() <= 100)) {
brightness = constrain((int) server.arg("c").toInt() * 2.55, 0, 255);
} else if ((server.arg("p") != "") && (server.arg("p").toInt() >= 0) && (server.arg("p").toInt() <= 255)) {
+1 -1
View File
@@ -1 +1 @@
#define SKETCH_VERSION "2.2.4.RU1.rgbw.3c"
#define SKETCH_VERSION "2.2.5.RU1.rgbw.3c"
+7 -1
View File
@@ -150,6 +150,12 @@
* 26 Mar 2019
* Bugfixes
*
* 19 May 2010
* 19 May 2019
* Bugfixes regarding MQTT Hostname
*
* 08 September 2019
* Version Bump to 2.2.5 rgbw 3colors
* adressed issue: #27
* adressed issue: #28 (see new REST-API documentation)
*
*/