SeedLabs-it / smartknob-firmware

Repository for the Smart Knob Firmware (Currently supporting Dev Kit v0.1)
Other
23 stars 2 forks source link

Factory reset and soft reset. #100

Closed carlhampuswall closed 4 months ago

carlhampuswall commented 5 months ago

Factory reset to ota_0 partition. Reset configuration and set OSMode to Onboarding.

Factory reset is ran after holding boot button (GPIO 0) for 10 seconds.

Closes #2

carlhampuswall commented 5 months ago

Do we want to reset to ota_0 (factory flashed image) or do we want to just reset config for now? And enable true factory reset later with a newer revision of the firmware?

carlhampuswall commented 5 months ago

Soft reset is hold for 5s. Hard reset/factory is 6 quick presses.

carlhampuswall commented 4 months ago

I believe it is better to keep hold 5 - 15 seconds instead of hold and 6 quick presses

My opinion here was that its harder to do 6 quick presses accidentally than holding it down for 15 sec to prevent none intentional HARD resets.

@nicolabortignon any opinion?

brushknight commented 4 months ago

the problem is that buttons are in not the best location for 6 clicks under 0.5s each

carlhampuswall commented 4 months ago

the problem is that buttons are in not the best location for 6 clicks under 0.5s each

thats true, hmm

carlhampuswall commented 4 months ago

the problem is that buttons are in not the best location for 6 clicks under 0.5s each

Will change back to 15s and create issue for adding UI for updates during reset.

carlhampuswall commented 4 months ago

@brushknight Will work on UI for reset tomorrow. Left some comments in the code for if we ever wanna use multiple presses for any action.