small fix for 32 channel firmwares

This commit is contained in:
Persephone Bubblegum-Holidy 2025-07-01 19:10:42 -07:00
parent a99ced1ad1
commit e696efbddd
2 changed files with 20 additions and 12 deletions

View file

@ -21,16 +21,20 @@ void loop()
{
byte1 = Serial.read();
byte2 = Serial.read();
if ((byte1 & 32) && (byte2 & 32))
{
if (byte1 & 1) Serial.write("PC3,32\n");
}
else
{
byte3 = Serial.read();
byte4 = Serial.read();
byte5 = Serial.read();
byte6 = Serial.read();
byte7 = Serial.read();
byte8 = Serial.read();
if ((byte1 & 32) && (byte2 & 32))
{
if (byte1 & 1) Serial.write("PC3,32\n");
}
if ((byte1 & 64) && (byte2 & 64) && (byte3 & 64) && (byte4 & 64) && (byte5 & 64) && (byte6 & 64) && (byte7 & 64) && (byte8 & 64))

View file

@ -36,16 +36,20 @@ void loop() {
{
byte1 = Serial.read();
byte2 = Serial.read();
if ((byte1 & 32) && (byte2 & 32))
{
if (byte1 & 1) Serial.write("PC3,8\n");
}
else
{
byte3 = Serial.read();
byte4 = Serial.read();
byte5 = Serial.read();
byte6 = Serial.read();
byte7 = Serial.read();
byte8 = Serial.read();
if ((byte1 & 32) && (byte2 & 32))
{
if (byte1 & 1) Serial.write("PC3,8\n");
}
if ((byte1 & 64) && (byte2 & 64) && (byte3 & 64) && (byte4 & 64) && (byte5 & 64))