Skip to content

Commit

Permalink
compass
Browse files Browse the repository at this point in the history
  • Loading branch information
JW committed Aug 27, 2021
1 parent dcd61f4 commit d8c12e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/drivers/MicroBitCompass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8c12e6

Please sign in to comment.