doc: Fix settings_handler_static::h_export example
Callback takes a const data pointer. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
parent
578cb132ff
commit
3bd8355ca0
|
@ -199,7 +199,7 @@ export functionality, for example, writing to the shell console).
|
|||
}
|
||||
|
||||
static int foo_settings_export(int (*storage_func)(const char *name,
|
||||
void *value,
|
||||
const void *value,
|
||||
size_t val_len))
|
||||
{
|
||||
return storage_func("foo/bar", &foo_val, sizeof(foo_val));
|
||||
|
|
Loading…
Reference in a new issue