HUB75: small correction of order

first set _valid=false, then perform delay.
This commit is contained in:
Frank
2025-11-02 16:38:03 +01:00
parent 0510fd308f
commit d9e5426636

View File

@@ -1174,9 +1174,9 @@ void BusHub75Matrix::cleanup() {
#else
USER_PRINTLN("HUB75 output paused.");
#endif
delay(30); // give some time to finish DMA
_valid = false;
delay(30); // give some time to finish DMA
deallocatePins();
_len = 0;
//if (fourScanPanel != nullptr) delete fourScanPanel; // warning: deleting object of polymorphic class type 'VirtualMatrixPanel' which has non-virtual destructor might cause undefined behavior