From b178ad734462fd83b0d87001f44e0ec6f55088a7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 30 Sep 2013 17:01:02 +1000 Subject: [PATCH] AP_OpticalFlow: updates for AP_HAL::MemberProc --- libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp b/libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp index 2ba7f7651e..fc316adf0a 100644 --- a/libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp +++ b/libraries/AP_OpticalFlow/AP_OpticalFlow_ADNS3080.cpp @@ -102,7 +102,7 @@ finish: // if device is working register the global static read function to // be called at 1khz if( retvalue ) { - hal.scheduler->register_timer_process(reinterpret_cast(&AP_OpticalFlow_ADNS3080::read), this); + hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&AP_OpticalFlow_ADNS3080::read)); } // resume timer