Skip to content

Fix charging wake recovery#43

Merged
tadelv merged 1 commit into
decentespresso:developfrom
skialpine:codex/charging-wakeup-recovery
May 4, 2026
Merged

Fix charging wake recovery#43
tadelv merged 1 commit into
decentespresso:developfrom
skialpine:codex/charging-wakeup-recovery

Conversation

@skialpine
Copy link
Copy Markdown
Contributor

Summary

  • Handle combined EXT1 wake bitmasks so button wake intent wins over charging wake
  • Let the charging screen return to scale mode when USB is unplugged instead of going back to sleep
  • Recover the ADS1232 in the main scale loop if samples stop arriving after wake/charge state changes

Context

This targets a hang seen after charging completes: the scale wakes from a charger-related state, but the ADC can remain silent and weight updates stop until the battery connector is physically replugged.

Validation

  • platformio run
  • Also tested the combined local firmware on an attached ESP32-S3 with platformio run -t upload --upload-port /dev/cu.wchusbserial110; flash verification completed successfully.

@skialpine skialpine changed the base branch from main to develop May 4, 2026 14:03
@skialpine skialpine marked this pull request as ready for review May 4, 2026 14:04
@skialpine skialpine force-pushed the codex/charging-wakeup-recovery branch from 7825433 to 08f8e55 Compare May 4, 2026 14:08
@tadelv tadelv merged commit 5430339 into decentespresso:develop May 4, 2026
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.

2 participants