mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-02-17 23:03:26 +00:00
Fix crash when event listener not created
This commit is contained in:
@@ -458,7 +458,9 @@ void visualizer_init(void) {
|
||||
void update_status(bool changed) {
|
||||
if (changed) {
|
||||
GSourceListener* listener = geventGetSourceListener(layer_changed_event, NULL);
|
||||
geventSendEvent(listener);
|
||||
if (listener) {
|
||||
geventSendEvent(listener);
|
||||
}
|
||||
}
|
||||
#ifdef USE_SERIAL_LINK
|
||||
static systime_t last_update = 0;
|
||||
|
||||
Reference in New Issue
Block a user