Skip to content

Give _int_pin and _reset_pin sane default values #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/SparkFun_BNO08x_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include "SparkFun_BNO08x_Arduino_Library.h"

int8_t _int_pin, _reset_pin;
int8_t _int_pin = -1, _reset_pin = -1;
static TwoWire *_i2cPort = NULL; //The generic connection to user's chosen I2C hardware
static SPIClass *_spiPort = NULL; //The generic connection to user's chosen SPI hardware
static uint8_t _deviceAddress = BNO08x_DEFAULT_ADDRESS; //Keeps track of I2C address. setI2CAddress changes this.
Expand Down Expand Up @@ -1653,4 +1653,4 @@ static bool spi_write(const uint8_t *buffer, size_t len,
_spiPort->endTransaction();

return true;
}
}