From d8c12e64479a374420e4be2d08bd6ab1cd67cda2 Mon Sep 17 00:00:00 2001 From: JW Date: Fri, 27 Aug 2021 17:33:08 +0200 Subject: [PATCH] compass --- source/drivers/MicroBitCompass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/drivers/MicroBitCompass.cpp b/source/drivers/MicroBitCompass.cpp index 0ce9442b..d46af22b 100644 --- a/source/drivers/MicroBitCompass.cpp +++ b/source/drivers/MicroBitCompass.cpp @@ -84,8 +84,8 @@ void MicroBitCompass::init(uint16_t id) this->samplePeriod = 100; this->configure(); - // Assume that we have no calibration information. - status &= ~MICROBIT_COMPASS_STATUS_CALIBRATED; + // Assume that we have calibration information. + status |= MICROBIT_COMPASS_STATUS_CALIBRATED; // Indicate that we're up and running. status |= MICROBIT_COMPONENT_RUNNING;