Skip to content

Commit

Permalink
AP_OpticalFlow: Move variables to be used in the preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jan 3, 2024
1 parent 68d8a26 commit b9675c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_OpticalFlow/AP_OpticalFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ void AP_OpticalFlow::stop_calibration()
void AP_OpticalFlow::update_state(const OpticalFlow_state &state)
{
_state = state;
_last_update_ms = AP_HAL::millis();

#if AP_AHRS_ENABLED
_last_update_ms = AP_HAL::millis();
// write to log and send to EKF if new data has arrived
AP::ahrs().writeOptFlowMeas(quality(),
_state.flowRate,
Expand Down

0 comments on commit b9675c3

Please sign in to comment.