tap_esc: fix resource leak (#18296)

This commit is contained in:
Hyungsub
2021-09-29 14:51:31 +02:00
committed by GitHub
parent 03bd5e0f48
commit 5677ab042b
2 changed files with 1 additions and 1 deletions
@@ -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);