Also resetting the bma456 internal setp counts when resetting the watch to its factory settings, this is nedeed because if the watch crashes or resets on its own, the bma456 is not reset anymore allowing to save the current step counter count and saving time by not reloading the config file.
This commit is contained in:
parent
b554e55e6e
commit
be90d23eeb
@ -402,6 +402,13 @@ static void saveSettingsToFlashCb(void)
|
||||
|
||||
static void performFactoryResetCb()
|
||||
{
|
||||
// Reset the BMA456 internal step counter
|
||||
if(!watch_peripherals_accelerometer_step_count_reset())
|
||||
{
|
||||
APP_LOG_ERROR("Failed to reset the step counter");
|
||||
return;
|
||||
}
|
||||
|
||||
// Reload factory settings
|
||||
persistency_factory_reset();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user