Skip to content

Commit af45c9f

Browse files
committed
moved to the newer pattern for core toolkit functions
1 parent 162affd commit af45c9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sfeBmv080.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "bmv080_defs.h"
2323

2424
// need our bus I2C type for some I2C specific features
25+
#include "sfeTk/sfeToolkit.h"
2526
#include "sfeTk/sfeTkII2C.h"
2627

2728
#include <cstring>
@@ -100,7 +101,7 @@ int8_t sfeBmv080::device_write_16bit_CB(bmv080_sercom_handle_t handle, uint16_t
100101
//
101102
int8_t sfeBmv080::device_delay_CB(uint32_t period)
102103
{
103-
sfeToolkit::delay_ms(period);
104+
sfeTk_delay_ms(period);
104105
// delay(period);
105106

106107
return E_COMBRIDGE_OK;
@@ -191,7 +192,7 @@ bool sfeBmv080::setMode(uint8_t mode)
191192
{
192193
bmv080_duty_cycling_mode_t duty_cycling_mode = E_BMV080_DUTY_CYCLING_MODE_0;
193194
bmv080_current_status = bmv080_start_duty_cycling_measurement(
194-
_bmv080_handle_class, (bmv080_callback_tick_t)sfeToolkit::ticks_ms(), duty_cycling_mode);
195+
_bmv080_handle_class, (bmv080_callback_tick_t)sfeTk_ticks_ms(), duty_cycling_mode);
195196
}
196197

197198
// check if the mode was set correctly

0 commit comments

Comments
 (0)