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:
Jon Trulson
2016-05-04 16:12:07 -06:00
committed by Noel Eck
parent cf74a260a3
commit dd2bca97b9
10 changed files with 18 additions and 469 deletions

View File

@ -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;
}