diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index ea7aa13e..2c262287 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -199,7 +199,7 @@ namespace modules { if (chrono::duration_cast(now - m_lastpoll) > m_interval) { m_lastpoll = now; m_log.info("%s: Polling values (inotify fallback)", name()); - on_event(nullptr); + on_event({}); } }