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:
Reto Schneider 2022-05-10 00:08:54 +02:00 committed by Carles Cufí
parent 578cb132ff
commit 3bd8355ca0

View file

@ -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));