Added UDP sync groups.

This commit is contained in:
Blaz Kristan
2021-08-21 12:22:26 +02:00
parent ff8145b745
commit 9609b48f2f
8 changed files with 875 additions and 799 deletions

View File

@@ -397,6 +397,13 @@ void getSettingsJS(byte subPage, char* dest)
sappend('v',SET_F("UP"),udpPort);
sappend('v',SET_F("U2"),udpPort2);
char k[3]; k[2] = 0;
for (int i = 0; i<8; i++)
{
k[1] = 49+i; //ascii 1,2,3,...
k[0] = 'G'; sappend('c',k,(syncGroups>>i)&0x01);
k[0] = 'R'; sappend('c',k,(receiveGroups>>i)&0x01);
}
sappend('c',SET_F("HX"),liveHSVCorrection);
sappend('v',SET_F("HS"),liveHSVSaturation);
sappend('v',SET_F("HV"),liveHSVValue);