I'm sure there's a cleverer way to do this, but I'm stupid and I didn't find it after a few minutes of searching stack overflow

pull/3647/head
Gareth Coleman 2024-04-18 22:18:50 +01:00
rodzic 7d77b23eb6
commit 0ae7674982
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -608,11 +608,15 @@ void setup()
#endif
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
if (rgb_found.type != ScanI2C::DeviceType::NONE || UNPHONE) {
if (rgb_found.type != ScanI2C::DeviceType::NONE) {
ambientLightingThread = new AmbientLightingThread(rgb_found.type);
}
#endif
#ifdef UNPHONE
ambientLightingThread = new AmbientLightingThread(rgb_found.type);
#endif
#ifdef T_WATCH_S3
drv.begin();
drv.selectLibrary(1);