indentation

This commit is contained in:
Frank
2026-01-25 15:46:57 +01:00
parent 279d48a3d1
commit 82f713093e

View File

@@ -164,9 +164,9 @@ void SparkFunDMX::update() {
{
while (DMXSerial.available())
{
uint8_t newdata = DMXSerial.read();
if (currentChannel <= dmxMaxChannel)
dmxData[currentChannel++] = newdata;
uint8_t newdata = DMXSerial.read();
if (currentChannel <= dmxMaxChannel)
dmxData[currentChannel++] = newdata;
}
if ((currentChannel > chanSize) || (currentChannel > dmxMaxChannel)) //Set the channel counter back to 0 if we reach the known end size of our packet
{