Reset keymap configuration
This commit is contained in:
committed by
Jeremy Soller
parent
f980257086
commit
e01e712745
@ -4,6 +4,7 @@
|
||||
|
||||
#include <board/battery.h>
|
||||
#include <board/kbscan.h>
|
||||
#include <board/keymap.h>
|
||||
#include <common/debug.h>
|
||||
|
||||
/**
|
||||
@ -17,6 +18,8 @@ bool config_should_reset(void) {
|
||||
* Reset the EC configuration data.
|
||||
*/
|
||||
void config_reset(void) {
|
||||
battery_reset();
|
||||
INFO("Reset configuration\n");
|
||||
battery_reset();
|
||||
keymap_erase_config();
|
||||
keymap_load_default();
|
||||
}
|
||||
|
Reference in New Issue
Block a user