From 9e67711afc0eb44be6d1c0a32d90651e629fecd1 Mon Sep 17 00:00:00 2001 From: Kirk Benell Date: Fri, 21 Mar 2025 14:57:17 -0600 Subject: [PATCH] fixed issue with callback function pointer - was passing in the result of the function, not the function pointer -- ROOKIE MOVE - doh --- src/sfTk/sfDevBMV080.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfTk/sfDevBMV080.cpp b/src/sfTk/sfDevBMV080.cpp index ee2ef86..acef7c2 100644 --- a/src/sfTk/sfDevBMV080.cpp +++ b/src/sfTk/sfDevBMV080.cpp @@ -192,7 +192,7 @@ bool sfDevBMV080::setMode(uint8_t mode) { bmv080_duty_cycling_mode_t duty_cycling_mode = E_BMV080_DUTY_CYCLING_MODE_0; bmv080_current_status = bmv080_start_duty_cycling_measurement( - _bmv080_handle_class, (bmv080_callback_tick_t)sftk_ticks_ms(), duty_cycling_mode); + _bmv080_handle_class, (bmv080_callback_tick_t)sftk_ticks_ms, duty_cycling_mode); } // check if the mode was set correctly