mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-29 01:36:26 -04:00
Check for ambientLightingThread non-null before use (#11590)
This commit is contained in:
1 parent
9fbc176e91
commit
260cf903e8
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user