adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spi mode is busted

HollisTech opened this issue · comments

spi mode is busted

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.

@hoffmannjan please look and fix ASAP

please try the latest commit