Skip to content

fix(critical): add timeout to DRDY wait functions to prevent infinite… - #36

Open
lahirunirmalx wants to merge 1 commit into
CuriousScientist0:mainfrom
lahirunirmalx:dev-drdy-timeout
Open

fix(critical): add timeout to DRDY wait functions to prevent infinite…#36
lahirunirmalx wants to merge 1 commit into
CuriousScientist0:mainfrom
lahirunirmalx:dev-drdy-timeout

Conversation

@lahirunirmalx

Copy link
Copy Markdown

… hang

  • waitForLowDRDY() and waitForHighDRDY() now accept timeout_ms parameter (default 1000ms)
  • Returns false if timeout occurs, true on success
  • Added _lastOpTimeout flag to track timeout state
  • Added hasTimeout() public method to check if last operation timed out
  • Prevents MCU from hanging indefinitely when hardware fails or disconnects

… hang

- waitForLowDRDY() and waitForHighDRDY() now accept timeout_ms parameter (default 1000ms)
- Returns false if timeout occurs, true on success
- Added _lastOpTimeout flag to track timeout state
- Added hasTimeout() public method to check if last operation timed out
- Prevents MCU from hanging indefinitely when hardware fails or disconnects
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