commit - f17a44b79a47498b6ccfcd2a97ef3a23a7f7aeda
commit + 68de62e15283b1f03fb32c3c19b55a52719704ff
blob - 2cbfc4b253df7e5c98eb28043472e4be92209fa4
blob + 91ed0768eda2efa5c651da097817dda010c5a390
--- src/main.c
+++ src/main.c
};
static volatile sig_atomic_t should_quit = 0;
-static int reload_config = 0;
static int reload_weather = 0;
static int reload_mail = 0;
static int reload_battery = 0;
}
while (!should_quit)
{
- if (reload_config)
- {
- read_config();
- reload_config = 0;
- }
if (mail_path_valid == false)
close_mail();
(void)printf("Got command 0x%02x: ", cmd);
switch (cmd)
{
- case 0x01:
- (void)puts("reloading config");
- reload_config = 1;
- break;
case 0x02:
(void)puts("reloading weather");
reload_weather = 1;