From 61716494c16fb886d2b3d85953e57750c5506795 Mon Sep 17 00:00:00 2001 From: jackun Date: Wed, 13 Jul 2022 19:21:38 +0300 Subject: [PATCH] Check if data logger is valid --- src/overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index 03c20cf..cf3f279 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -163,7 +163,7 @@ void update_hw_info(const struct overlay_params& params, uint32_t vendorID) if (graph_data.size() >= kMaxGraphEntries) graph_data.pop_front(); graph_data.push_back(currentLogData); - logger->notify_data_valid(); + if (logger) logger->notify_data_valid(); HUDElements.update_exec(); }