Remove ledCount (#2300)

Bus initialization on reading from eeprom
This commit is contained in:
Christian Schwinne
2021-10-31 11:57:41 +01:00
committed by GitHub
parent a93f05c047
commit 7e1920dc4b
12 changed files with 40 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ void RGBNET_readValues() {
int channel = UDP.read();
//channel data is not used we only supports one channel
int len = UDP.read(RGBNET_packet, ledCount*3);
int len = UDP.read(RGBNET_packet, strip.getLengthTotal()*3);
if(len==0){
return;
}
@@ -50,7 +50,7 @@ void handleConfig(AsyncWebServerRequest *request)
\"channels\": [\
{\
\"channel\": 1,\
\"leds\": " + ledCount + "\
\"leds\": " + strip.getLengthTotal() + "\
},\
{\
\"channel\": 2,\