HUB75: use last brightness on re-init

avoids brightness flash when saving LED preferences
This commit is contained in:
Frank
2024-11-15 22:33:29 +01:00
parent d6dedd025d
commit 06fc1eb5b8
3 changed files with 20 additions and 2 deletions

View File

@@ -411,6 +411,7 @@ class BusHub75Matrix : public Bus {
static HUB75_I2S_CFG activeMXconfig; // last used mxconfig
static uint8_t activeType; // last used type
static uint8_t instanceCount; // active instances - 0 or 1
static uint8_t last_bri; // last used brightness value (persists on driver delete)
};
#endif