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

Init into constructor added

parent 77cf2c2b
......@@ -24,15 +24,15 @@
PRIVATE FUNCTIONS
***************************************************************************/
Adafruit_BME280::Adafruit_BME280()
: _cs(-1), _mosi(-1), _miso(-1), _sck(-1)
: _cs(-1), _mosi(-1), _miso(-1), _sck(-1), t_fine(0), _sensorID(0), _i2caddr(0)
{ }
Adafruit_BME280::Adafruit_BME280(int8_t cspin)
: _cs(cspin), _mosi(-1), _miso(-1), _sck(-1)
: _cs(cspin), _mosi(-1), _miso(-1), _sck(-1), t_fine(0), _sensorID(0), _i2caddr(0)
{ }
Adafruit_BME280::Adafruit_BME280(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), t_fine(0), _sensorID(0), _i2caddr(0)
{ }
......
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