nyx: Add time offset
The epoch is based on HOS format. An automatic time set will be implemented in a later version.
This commit is contained in:
@@ -57,6 +57,7 @@ void set_default_configuration()
|
||||
void set_nyx_default_configuration()
|
||||
{
|
||||
n_cfg.themecolor = 167;
|
||||
n_cfg.timeoff = 0;
|
||||
n_cfg.home_screen = 0;
|
||||
n_cfg.verification = 1;
|
||||
}
|
||||
@@ -192,6 +193,9 @@ int create_nyx_config_entry()
|
||||
f_puts("[config]\nthemecolor=", &fp);
|
||||
itoa(n_cfg.themecolor, lbuf, 10);
|
||||
f_puts(lbuf, &fp);
|
||||
f_puts("\ntimeoff=", &fp);
|
||||
itoa(n_cfg.timeoff, lbuf, 10);
|
||||
f_puts(lbuf, &fp);
|
||||
f_puts("\nhomescreen=", &fp);
|
||||
itoa(n_cfg.home_screen, lbuf, 10);
|
||||
f_puts(lbuf, &fp);
|
||||
|
||||
Reference in New Issue
Block a user