You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
477 B
C++
22 lines
477 B
C++
#pragma once
|
|
#include "overlay.h"
|
|
#include "overlay_params.h"
|
|
#include <logging.h>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
|
|
class BatteryStats{
|
|
public:
|
|
void findFiles();
|
|
void update();
|
|
bool files_fetched = false;
|
|
struct powerStruct{
|
|
FILE *file = nullptr;
|
|
float value;
|
|
};
|
|
std::unordered_map<std::string, powerStruct> powerMap;
|
|
float current_watt = 0;
|
|
};
|
|
|
|
extern BatteryStats Battery_Stats;
|