check that paths exist before using them

This commit is contained in:
Squibid 2026-01-08 14:50:28 -05:00
parent 1456db633d
commit 0a88ca1b8c
Signed by: squibid
GPG key ID: BECE5684D3C4005D
3 changed files with 33 additions and 4 deletions

View file

@ -12,6 +12,11 @@ void parse_config_file(char *path);
*/
void setup_led_formula(void);
/**
* @brief ensure that the config paths are valid
*/
void check_config();
extern char *battery_status_path;
extern char *battery_power_source;