imuboard: add a command to reset eeprom
[fpv.git] / imuboard / eeprom_config.c
index f3274d8..2eb39c1 100644 (file)
@@ -155,3 +155,8 @@ int8_t eeprom_delete_cmd(uint8_t n)
        eeprom_set_ncmds(max - 1);
        return 0;
 }
+
+void eeprom_reset(void)
+{
+       eeprom_set_ncmds(0);
+}