Skip to content
Snippets Groups Projects
Commit be52dcf5 authored by Alexandr Kondratev's avatar Alexandr Kondratev Committed by Daniel Agar
Browse files

BMP280 improve external device flag parameter naming (#8806)

parent d2712dcb
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ struct spi_calibration_s {
class BMP280_SPI: public device::SPI, public bmp280::IBMP280
{
public:
BMP280_SPI(uint8_t bus, uint32_t device, bool external);
BMP280_SPI(uint8_t bus, uint32_t device, bool is_external_device);
virtual ~BMP280_SPI() = default;
bool is_external();
......@@ -87,10 +87,10 @@ bmp280::IBMP280 *bmp280_spi_interface(uint8_t busnum, uint8_t device, bool exter
return new BMP280_SPI(busnum, device, external);
}
BMP280_SPI::BMP280_SPI(uint8_t bus, uint32_t device, bool externalL) :
BMP280_SPI::BMP280_SPI(uint8_t bus, uint32_t device, bool is_external_device) :
SPI("BMP280_SPI", nullptr, bus, device, SPIDEV_MODE3, 10 * 1000 * 1000)
{
_external = externalL;
_external = is_external_device;
}
bool BMP280_SPI::is_external()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment