mirror of
https://github.com/eclipse/upm.git
synced 2025-07-27 14:11:15 +03:00
bmp180/bmpx0x: Remove old bmp180 driver
This commit removes the old bmp180 driver that was erroneously re-added when the interface examples and headers were introduced. It then switches the users of bmp180 to the existing bmpx8x driver, which already supports the bmp180. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include "si7005.hpp"
|
||||
#include "bmp180.hpp"
|
||||
#include "bmpx8x.hpp"
|
||||
#include "bme280.hpp"
|
||||
|
||||
#define EDISON_I2C_BUS 1
|
||||
@ -58,10 +58,10 @@ upm::ITemperatureSensor* getTemperatureSensor()
|
||||
std::cerr << "SI7005: " << e.what() << std::endl;
|
||||
}
|
||||
try {
|
||||
temperatureSensor = new upm::BMP180(EDISON_I2C_BUS);
|
||||
temperatureSensor = new upm::BMPX8X(EDISON_I2C_BUS);
|
||||
return temperatureSensor;
|
||||
} catch (std::exception& e) {
|
||||
std::cerr << "BMP180: " << e.what() << std::endl;
|
||||
std::cerr << "BMPX8X: " << e.what() << std::endl;
|
||||
}
|
||||
return temperatureSensor;
|
||||
}
|
||||
|
Reference in New Issue
Block a user