Only update battery stats if a battery is present
@@ -22,7 +22,9 @@ std::vector<logData> graph_data;
void update_hw_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID)
{
+ if (Battery_Stats.numBattery() > 0 ) {
Battery_Stats.update();
+ }
if (params.enabled[OVERLAY_PARAM_ENABLED_cpu_stats] || logger->is_active()) {
cpuStats.UpdateCPUData();
#ifdef __gnu_linux__
