MEAS airspeed: Stricter initialization and constructors

This commit is contained in:
Lorenz Meier 2014-07-16 08:54:40 +02:00
parent da4967e8e4
commit 7ca184de45
2 changed files with 4 additions and 2 deletions

View File

@ -140,9 +140,9 @@ extern "C" __EXPORT int meas_airspeed_main(int argc, char *argv[]);
MEASAirspeed::MEASAirspeed(int bus, int address, const char *path) : Airspeed(bus, address,
CONVERSION_INTERVAL, path),
_filter(MEAS_RATE, MEAS_DRIVER_FILTER_FREQ),
_t_system_power(-1)
_t_system_power(-1),
system_power{}
{
memset(&system_power, 0, sizeof(system_power));
}
int

View File

@ -40,3 +40,5 @@ MODULE_COMMAND = meas_airspeed
SRCS = meas_airspeed.cpp
MODULE_STACKSIZE = 1200
EXTRACXXFLAGS = -Weffc++