Reset keymap configuration

This commit is contained in:
Jeremy Soller
2020-10-01 15:56:56 -06:00
committed by Jeremy Soller
parent f980257086
commit e01e712745

View File

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