AP_TemperatureSensor: remove pointless constructor

If you ever allocate on of these on the stack you're doing something
wrong
This commit is contained in:
Peter Barker 2018-05-08 08:54:36 +10:00 committed by Peter Barker
parent 7dd023744f
commit 11e00f34b2
2 changed files with 0 additions and 9 deletions

View File

@ -13,14 +13,6 @@ static const uint8_t TSYS01_CMD_READ_PROM = 0xA0;
static const uint8_t TSYS01_CMD_CONVERT = 0x40; static const uint8_t TSYS01_CMD_CONVERT = 0x40;
static const uint8_t TSYS01_CMD_READ_ADC = 0x00; static const uint8_t TSYS01_CMD_READ_ADC = 0x00;
TSYS01::TSYS01() :
_dev(nullptr),
_temperature(0),
_healthy(false)
{
memset(&_k, 0, sizeof(_k));
}
bool TSYS01::init() bool TSYS01::init()
{ {
_dev = std::move(hal.i2c_mgr->get_device(1, TSYS01_ADDR)); _dev = std::move(hal.i2c_mgr->get_device(1, TSYS01_ADDR));

View File

@ -12,7 +12,6 @@
class TSYS01 { class TSYS01 {
public: public:
TSYS01(void);
bool init(void); bool init(void);
float temperature(void) { return _temperature; } // temperature in degrees C float temperature(void) { return _temperature; } // temperature in degrees C