1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 03:19:58 +03:00

Fix missing startTimeMs reset in sensor temperature compensation

Co-authored-by: sensei-hacker <1971284+sensei-hacker@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-05 22:49:04 +00:00
parent 472f3adb11
commit 7958265ee8

View file

@ -100,6 +100,7 @@ float applySensorTempCompensation(int16_t sensorTemp, float sensorMeasurement, s
} }
#endif #endif
sensor_comp_data[sensorType].calibrationState = SENSOR_TEMP_CAL_COMPLETE; sensor_comp_data[sensorType].calibrationState = SENSOR_TEMP_CAL_COMPLETE;
startTimeMs = 0;
} }
return 0.0f; return 0.0f;