Add default hostname Kconfig item
This commit is contained in:
parent
d7f1c2ace0
commit
81dfa7fe1c
@ -33,7 +33,10 @@ typedef struct {
|
|||||||
} Item;
|
} Item;
|
||||||
|
|
||||||
static Item state[ITEM_COUNT] = {
|
static Item state[ITEM_COUNT] = {
|
||||||
[HOSTNAME] = { .id = "hostname", .default_value = "bedside-clock" },
|
[HOSTNAME] = {
|
||||||
|
.id = "hostname",
|
||||||
|
.default_value = CONFIG_DEFAULT_HOSTNAME,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool load(ItemIndex item)
|
static bool load(ItemIndex item)
|
||||||
|
6
main/Kconfig.projbuild
Normal file
6
main/Kconfig.projbuild
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
menu "Bedside clock settings"
|
||||||
|
config DEFAULT_HOSTNAME
|
||||||
|
string "The default hostname for the device"
|
||||||
|
default "bedside-clock"
|
||||||
|
prompt "Default hostname"
|
||||||
|
endmenu
|
Loading…
x
Reference in New Issue
Block a user