SeedLabs-it / smartknob-firmware

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

Fix strain calibration issues. #122

Closed carlhampuswall closed 3 months ago

carlhampuswall commented 3 months ago

Fixed issue where raw value could drift if finding calibration scale took a long time.

Removed internal continue loop that re did reading of strain sensor if found calibrated_weight was off by 10g. Since this shouldn't happen and if it does we wouldn't want to continue we instead exit loop and prompt user to redo calibration. This also detects if user removes weight during calibration and exits.