Skip to content

Commit

Permalink
Fix typo in magnetometer modes
Browse files Browse the repository at this point in the history
  • Loading branch information
alextsam committed Aug 18, 2018
1 parent 8ca9f7e commit f59bea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/mag_test/mag_test.ino
Expand Up @@ -28,7 +28,7 @@ void setup()
accel.rebootMagnetometer();
delay(1000);

accel.enableMagnetometer(Sodaq_LSM303AGR::MagHighResMode, Sodaq_LSM303AGR::Hz100, Sodaq_LSM303AGR::Continiuous);
accel.enableMagnetometer(Sodaq_LSM303AGR::MagHighResMode, Sodaq_LSM303AGR::Hz100, Sodaq_LSM303AGR::Continuous);

uint8_t axes = Sodaq_LSM303AGR::MagX;
accel.enableMagnetometerInterrupt(axes, -400);
Expand Down
2 changes: 1 addition & 1 deletion src/Sodaq_LSM303AGR.h
Expand Up @@ -211,7 +211,7 @@ class Sodaq_LSM303AGR
};

enum MagnetometerSystemMode {
Continiuous = 0b00,
Continuous = 0b00,
Single = 0b01,
IdleMode = 0b10,
};
Expand Down

0 comments on commit f59bea8

Please sign in to comment.