Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 authored May 8, 2023
2 parents 20085a7 + 005e995 commit 35a3941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ category=Device Control
url=https://github.com/leaphy-robotics/leaphy-extensions-extra
architectures=avr
includes=Adafruit_NeoPixel.h,Adafruit_TCS34725.h,ledstrip.h,Leaphy_Extra.h,OLED_Display.h,LSM303AGR.h,LightSensor.h,TimeOfFlight.h,AirQuality.h,Magnet.h
depends=Adafruit SSD1306,Adafruit GFX Library,Adafruit LSM303 Accel,Adafruit LIS2MDL,Adafruit BusIO Register,Adafruit I2CDevice,Adafruit SPIDevice,Adafruit Sensor,Wire,Adafruit_VL53L0X
depends=Adafruit SSD1306,Adafruit GFX Library,Adafruit LSM303 Accel,Adafruit LIS2MDL,Adafruit BusIO Register,Adafruit I2CDevice,Adafruit SPIDevice,Adafruit Sensor,Wire,Adafruit_VL53L0X
4 changes: 2 additions & 2 deletions src/LSM303AGR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
CompassSensor::CompassSensor() {
CompassSensor::mag = Adafruit_LIS2MDL();
// initiate the event
CompassSensor::mag.getEvent(&data);
CompassSensor::mag.getEvent(data);
}

bool CompassSensor::begin(uint8_t i2c_addr = _ADDRESS_MAG, TwoWire *wire = &Wire) {
Expand Down Expand Up @@ -44,5 +44,5 @@ void CompassSensor::reset() {
}

void CompassSensor::update() {
CompassSensor::mag.getEvent(&data);
CompassSensor::mag.getEvent(data);
}

0 comments on commit 35a3941

Please sign in to comment.