Skip to content

fix: refresh ADS after soft sleep wake#79

Open
ODevStudio wants to merge 1 commit into
decentespresso:mainfrom
ODevStudio:codex/ads-soft-wake
Open

fix: refresh ADS after soft sleep wake#79
ODevStudio wants to merge 1 commit into
decentespresso:mainfrom
ODevStudio:codex/ads-soft-wake

Conversation

@ODevStudio

Copy link
Copy Markdown
Collaborator

Title:
Fix ADS recovery after soft sleep wake for preview release

Body:

Summary

  • Refresh the ADS1232 path after HDS exits soft sleep.
  • Route button, USB, BLE/WebSocket soft-wake paths through one wake helper.
  • Keep wake behavior non-taring: the scale refills ADC data and resets display/tracking output, but does not zero automatically.

Why

Soft sleep powers down the HDS board rails through PWR_CTRL / ACC_PWR_CTRL. On wake, the firmware previously only restored the rails and OLED state. The ADS1232 driver object kept its old buffer/timing state even though the ADC hardware had experienced a power discontinuity.

That could leave the scale relying on stale ADC state until the normal timeout recovery path ran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant