ADXL345_I2C: Make constructor explicit.

The second argument has a default value, so it needs to be explicit.

Change-Id: I5c38f8f55f9c21576835c005acd8d80fe6864140
This commit is contained in:
Peter Johnson
2014-07-27 23:59:59 -07:00
parent 326aa2e85c
commit 7f4e1e39ae

View File

@@ -36,7 +36,7 @@ public:
};
public:
ADXL345_I2C(Port port, Range range = kRange_2G);
explicit ADXL345_I2C(Port port, Range range = kRange_2G);
virtual ~ADXL345_I2C();
// Accelerometer interface