Commit a2e20090 authored by Markéta Jedličková's avatar Markéta Jedličková
Browse files

BMP init into constructor added

parent 9f276097
......@@ -25,15 +25,15 @@
: _cs(-1), _mosi(-1), _miso(-1), _sck(-1)
: _cs(-1), _mosi(-1), _miso(-1), _sck(-1), _i2caddr(0), _sensorID(0), t_fine(0)
{ }
Adafruit_BMP280::Adafruit_BMP280(int8_t cspin)
: _cs(cspin), _mosi(-1), _miso(-1), _sck(-1)
: _cs(cspin), _mosi(-1), _miso(-1), _sck(-1), _i2caddr(0), _sensorID(0), t_fine(0)
{ }
Adafruit_BMP280::Adafruit_BMP280(int8_t cspin, int8_t mosipin, int8_t misopin, int8_t sckpin)
: _cs(cspin), _mosi(mosipin), _miso(misopin), _sck(sckpin)
: _cs(cspin), _mosi(mosipin), _miso(misopin), _sck(sckpin), _i2caddr(0), _sensorID(0), t_fine(0)
{ }
......@@ -147,7 +147,7 @@ class Adafruit_BMP280
uint8_t _i2caddr;
int32_t _sensorID;
int32_t t_fine;
int32_t t_fine;
int8_t _cs, _mosi, _miso, _sck;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment