Skip to content

Fix wake up no ack control - #3

Open
quinkq wants to merge 2 commits into
esp-idf-lib:mainfrom
quinkq:fix-wake-up-no-ack-control
Open

quinkq wants to merge 2 commits into
esp-idf-lib:mainfrom
quinkq:fix-wake-up-no-ack-control

Conversation

@quinkq

@quinkq quinkq commented Dec 28, 2025

Copy link
Copy Markdown

Fixes #2

The SCD4x doesn't send an ACK when waking from sleep mode, which was causing wake_up failures. The new handle invalidation function added in esp-idf-lib/i2cdev#9 will now allow to temporarily disable ACK checking just for this command.

Changes:

  • scd4x_wake_up() now uses dynamic ACK control via handle invalidation
  • Bumped timeout from 20ms to 30ms (need pointed by the users)
  • Added explicit disable_ack_check = false in init_desc for clarity
  • Updated function docs

Tested WITHOUT real hardware - feedback appreciated.

The SCD4x doesn't send an ACK when waking from sleep mode,
which was causing wake_up failures. Implemented the handle invalidation pattern
to temporarily disable ACK checking just for this command.

- scd4x_wake_up() now uses dynamic ACK control via handle invalidation
- bump timeout from 20ms to 30ms (as in discussions)
- add explicit disable_ack_check = false in init_desc for clarity
- update function docs

This branch has not been deployed

No deployments
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.

implement i2c_dev_write_no_ack

1 participant