From 2095b2a2d741134d990acf0ca749a394ce0b1b99 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 30 Sep 2013 17:01:28 +1000 Subject: [PATCH] AP_Airspeed: updates for AP_HAL::MemberProc --- libraries/AP_Airspeed/AP_Airspeed_I2C.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Airspeed/AP_Airspeed_I2C.cpp b/libraries/AP_Airspeed/AP_Airspeed_I2C.cpp index 5bbcc04a14..92b7b8a569 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_I2C.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_I2C.cpp @@ -35,7 +35,7 @@ bool AP_Airspeed_I2C::init(void) hal.scheduler->delay(10); _collect(); if (_last_sample_time_ms != 0) { - hal.scheduler->register_timer_process(reinterpret_cast(&AP_Airspeed_I2C::_timer), this); + hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&AP_Airspeed_I2C::_timer)); return true; } return false;