ak09916: fixed driver not reporting magnetometer as external

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst 2019-07-25 10:12:46 +02:00 committed by Roman Bapst
parent 2b8337e5e2
commit c0053409a3

View File

@ -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);
}
}