fixing UDP sound sync startup problems

sometimes sound sync only worked after disable + enable audioreactive. This hopefully improves the situation.
This commit is contained in:
Frank
2023-01-02 20:34:13 +01:00
parent d02bdb8a82
commit a3c2f4a0ec

View File

@@ -1373,6 +1373,10 @@ class AudioReactive : public Usermod {
USER_PRINTLN(F("AR: sound input driver initialized successfully."));
}
// try to start UDP
last_UDPTime = 0;
receivedFormat = 0;
delay(100);
if (enabled) connectUDPSoundSync();
initDone = true;
}