Skip to content

Commit

Permalink
actually revert ready bit
Browse files Browse the repository at this point in the history
  • Loading branch information
TomLonergan03 committed May 28, 2024
1 parent 0e07f94 commit 196a13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sensors/optical_flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::optional<std::uint16_t> OpticalFlow::read()
return std::nullopt;
}
const auto data = *optional_data;
const auto ready = data[1] & 0x40;
const auto ready = data[1] & 0x80;
const auto x = static_cast<std::uint16_t>((data[3] << 8) | data[4]);
const auto y = static_cast<std::uint16_t>((data[5] << 8) | data[6]);
const auto quality = data[7];
Expand Down

0 comments on commit 196a13e

Please sign in to comment.