put ts in structs
This commit is contained in:
@@ -13,17 +13,23 @@
|
||||
class Application {
|
||||
public:
|
||||
struct Config {
|
||||
uint16_t lcd_interval_ms;
|
||||
uint8_t lcd_contrast;
|
||||
std::string lcd_port;
|
||||
struct Lcd {
|
||||
uint16_t refresh_interval_ms;
|
||||
uint8_t contrast;
|
||||
std::string port;
|
||||
};
|
||||
struct HomeAssistant {
|
||||
std::string url;
|
||||
std::string entity;
|
||||
std::string token;
|
||||
};
|
||||
Lcd lcd;
|
||||
HomeAssistant hass;
|
||||
std::string cpu_pciaddr;
|
||||
std::string gpu_pciaddr;
|
||||
std::string sys_sensor;
|
||||
std::string sys_ifname;
|
||||
std::string home_dir;
|
||||
std::string hass_url;
|
||||
std::string hass_entity;
|
||||
std::string hass_token;
|
||||
};
|
||||
|
||||
explicit Application(Config config);
|
||||
|
||||
Reference in New Issue
Block a user