Skip to content
Snippets Groups Projects

Allow LTC2451 I2C command retry while conversion in progress

Merged Karol Krizka requested to merge LTC2451fix into devel

The LTC2451 ADC does not respond to I2C commands while a conversion in progress. This can cause problems if subsequent reads are performed too close together.

This addresses the issue by allowing each I2C command to fail (catch ComIOException) once. The class then waits for ~45ms (longest conversion time) and retries the command. If the command fails the second time, then the exception is forwarded.

Edited by Karol Krizka

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading