From 2fc576f253340119426b91c141aae65a6469f395 Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Wed, 15 Apr 2026 11:23:15 -0400 Subject: [PATCH] Update src/motion/MotionSensor.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/motion/MotionSensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/motion/MotionSensor.cpp b/src/motion/MotionSensor.cpp index 4c85db35a..83231aea9 100644 --- a/src/motion/MotionSensor.cpp +++ b/src/motion/MotionSensor.cpp @@ -71,7 +71,7 @@ bool MotionSensor::saveMagnetometerCalibration(const char *filePath, float highe CompassCalibrationRecord record = { COMPASS_CALIBRATION_MAGIC, COMPASS_CALIBRATION_VERSION, 0, highestX, lowestX, highestY, lowestY, highestZ, lowestZ}; - auto file = SafeFile(filePath); + auto file = SafeFile(filePath, true); const size_t written = file.write(reinterpret_cast(&record), sizeof(record)); return (written == sizeof(record)) && file.close(); #else