Check if data logger is valid

This commit is contained in:
jackun 2022-07-13 19:21:38 +03:00
parent acfc62a434
commit 61716494c1
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -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();
}