File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 19
19
#include " sfDevXM125Core.h"
20
20
21
21
// --------------------------------------------------------------------------------
22
- sfTkError_t sfDevXM125Core::begin (sfTkII2C *theBus)
22
+ sfTkError_t sfDevXM125Core::init (sfTkII2C *theBus)
23
23
{
24
24
if (theBus == nullptr )
25
25
return ksfTkErrBusNotInit;
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ class sfDevXM125Core
30
30
31
31
// / @brief This function begins the examples/communication.
32
32
// / @return ksfTkErrOk on success, or error code (value < -1)
33
- virtual sfTkError_t begin (sfTkII2C *theBus = nullptr );
34
-
35
- virtual ~sfDevXM125Core () {};
33
+ sfTkError_t init (sfTkII2C *theBus = nullptr );
36
34
37
35
protected:
38
36
// our toolkit bus
Original file line number Diff line number Diff line change 15
15
sfTkError_t sfDevXM125Presence::begin (sfTkII2C *theBus)
16
16
{
17
17
// call super to get the device connection working
18
- sfTkError_t retVal = sfDevXM125Core::begin (theBus);
18
+ sfTkError_t retVal = sfDevXM125Core::init (theBus);
19
19
if (retVal != ksfTkErrOk)
20
20
return retVal;
21
21
@@ -316,7 +316,6 @@ sfTkError_t sfDevXM125Presence::setPresenceInterPhaseBoostEnabled(bool en)
316
316
// --------------------------------------------------------------------------------
317
317
sfTkError_t sfDevXM125Presence::getPresenceIntraDetectionEnabled (bool &en)
318
318
{
319
- size_t readBytes = 0 ;
320
319
uint8_t value;
321
320
sfTkError_t retVal = _theBus->readRegisterUInt8 (SFE_XM125_PRESENCE_INTRA_DETECTION_ENABLED, value);
322
321
Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ class sfDevXM125Presence : public sfDevXM125Core
243
243
* @param theBus Pointer to the I2C bus object. If nullptr, the default bus is used.
244
244
* @return ksfTkErrOk on success, or error code (value < -1) on failure.
245
245
*/
246
- sfTkError_t begin (sfTkII2C *theBus = nullptr ) override ;
246
+ sfTkError_t begin (sfTkII2C *theBus = nullptr );
247
+
247
248
// / @brief This function sets all the beginning values for a basic I2C
248
249
// / example to be run on the device for presence sensing.
249
250
// / @return ksfTkErrOk on success, or error code (value < -1)
You can’t perform that action at this time.
0 commit comments