Skip to content

Commit

Permalink
ak09916: fixed driver not reporting magnetometer as external
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <bapstroman@gmail.com>
  • Loading branch information
RomanBapst committed Jul 25, 2019
1 parent 2b8337e commit c005340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/magnetometer/ak09916/ak09916.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ AK09916::measure()
}

_px4_mag.set_error_count(perf_event_count(_mag_errors));
_px4_mag.set_external(external());
_px4_mag.update(timestamp_sample, raw_data.x, raw_data.y, raw_data.z);
}
}
Expand Down

0 comments on commit c005340

Please sign in to comment.