Skip to content

Commit

Permalink
Add TODO for IMU timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brunofalmeida committed Feb 13, 2020
1 parent 1b83688 commit 3ab60dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ Returns - 1 for success (got INT), 0 for failure (no INT)
*/
uint8_t wait_for_imu_int(void) {
// Wait up to 255ms (can take up to 104ms after hardware reset, see reference library)
// TODO - check this timeout and IMU_PACKET_CHECK_COUNT
uint8_t timeout = UINT8_MAX;
while (get_imu_int() != 0 && timeout > 0) {
_delay_ms(1);
Expand Down

0 comments on commit 3ab60dd

Please sign in to comment.