mirror of https://github.com/ArduPilot/ardupilot
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:
parent
7dd023744f
commit
11e00f34b2
|
@ -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_READ_ADC = 0x00;
|
||||
|
||||
TSYS01::TSYS01() :
|
||||
_dev(nullptr),
|
||||
_temperature(0),
|
||||
_healthy(false)
|
||||
{
|
||||
memset(&_k, 0, sizeof(_k));
|
||||
}
|
||||
|
||||
bool TSYS01::init()
|
||||
{
|
||||
_dev = std::move(hal.i2c_mgr->get_device(1, TSYS01_ADDR));
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
class TSYS01 {
|
||||
public:
|
||||
TSYS01(void);
|
||||
|
||||
bool init(void);
|
||||
float temperature(void) { return _temperature; } // temperature in degrees C
|
||||
|
|
Loading…
Reference in New Issue