adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
253 stars 186 forks source link

spi mode is busted #28

Closed HollisTech closed 4 years ago

HollisTech commented 5 years ago

line 46 AdaFruit_BMP280.cpp: _spi = theSPI; should be: _spi = theSPI;

As is, this will crash in Adafruit_BMP280 ctor for spi mode. The code should be copying a pointer, not the object.

ladyada commented 5 years ago

@hoffmannjan please look and fix ASAP

ladyada commented 5 years ago

please try the latest commit