Move settings load
This commit is contained in:
parent
74fd4fc997
commit
c5c21022a2
3 changed files with 36 additions and 18 deletions
13
app/src/settings.c
Normal file
13
app/src/settings.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <kernel.h>
|
||||
#include <settings/settings.h>
|
||||
|
||||
static int zmk_settings_init(struct device *_arg)
|
||||
{
|
||||
return settings_load();
|
||||
}
|
||||
|
||||
SYS_INIT(zmk_settings_init,
|
||||
APPLICATION,
|
||||
CONFIG_APPLICATION_INIT_PRIORITY);
|
||||
Loading…
Add table
Add a link
Reference in a new issue