mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 02:03:33 +08:00
tap_esc: fix resource leak (#18296)
This commit is contained in:
@@ -176,7 +176,6 @@ void LSM9DS1_MAG::RunImpl()
|
||||
// sensor Z is up (RHC), flip z for publication
|
||||
// sensor X is aligned with -X of lsm9ds1 accel/gyro
|
||||
x = (x == INT16_MIN) ? INT16_MAX : -x;
|
||||
y = y;
|
||||
z = (z == INT16_MIN) ? INT16_MAX : -z;
|
||||
|
||||
_px4_mag.update(now, x, y, z);
|
||||
|
||||
Reference in New Issue
Block a user