Check for ambientLightingThread non-null before use (#11590)

This commit is contained in:
Bob Reese authored and GitHub committed 2026-08-27 15:23:23 +00:00
1 parent 9fbc176e91
commit 260cf903e8
1 file changed
+3 -1
+3 -1
View File
@@ -247,7 +247,9 @@ void ExternalNotificationModule::setExternalState(uint8_t index, bool on)
blue = 0;
white = 0;
}
ambientLightingThread->setLighting(moduleConfig.ambient_lighting.current, red, green, blue);
if (ambientLightingThread) {
ambientLightingThread->setLighting(moduleConfig.ambient_lighting.current, red, green, blue);
}
#endif
#ifdef HAS_DRV2605