Skip to content

Commit

Permalink
Always use the compile-time hotkey config.
Browse files Browse the repository at this point in the history
Fixed #40
  • Loading branch information
keirf committed Apr 26, 2021
1 parent 76747dd commit b367dd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ void config_init(void)
config_write_flash(&config);
}

/* Hotkey configuration is stored in flash-config space but not actually
* runtime modifiable or viewable. So, to avoid confusion, always use the
* compile-time hotkey configuration. */
memcpy(config.hotkey, dfl_config.hotkey, sizeof(config.hotkey));

config_printk(&config);

printk("\nKeys:\n Space: Select\n O: Down\n P: Up\n");
Expand Down

0 comments on commit b367dd0

Please sign in to comment.