Added a zmk_settings_erase() function to clear all saved settings. This does not go through Zephyr's settings subsystem, but instead directly clears the data from the setting storage backend, so a reboot is needed for it to take effect.
12 lines
201 B
C
12 lines
201 B
C
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <zmk/settings.h>
|
|
|
|
int zmk_settings_erase(void) {
|
|
// No storage backend; nothing to do
|
|
return 0;
|
|
}
|