bmx055: fix up some issues reported by static analysis

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-07-07 17:50:29 -06:00
parent e0ef6eea64
commit 0fb56356fb
12 changed files with 73 additions and 48 deletions

View File

@@ -32,9 +32,9 @@
using namespace upm;
using namespace std;
BMX055::BMX055(int accelBus, uint8_t accelAddr, int accelCS,
int gyroBus, uint8_t gyroAddr, int gyroCS,
int magBus, uint8_t magAddr, int magCS) :
BMX055::BMX055(int accelBus, int accelAddr, int accelCS,
int gyroBus, int gyroAddr, int gyroCS,
int magBus, int magAddr, int magCS) :
m_accel(0), m_gyro(0), m_mag(0)
{
// if -1 is supplied as a bus for any of these, we will not