From 48eb35c45a6dc78a542cf48cda039bc80d53232a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2011 22:01:09 +1100 Subject: [PATCH] fixed build error the prototype extractor was finding the commented out version of cross_track_test(), which had a different prototype --- ArduCopter/navigation.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/navigation.pde b/ArduCopter/navigation.pde index 1b45ba21ae..612d63eff2 100644 --- a/ArduCopter/navigation.pde +++ b/ArduCopter/navigation.pde @@ -212,9 +212,9 @@ static void update_crosstrack(void) } } -static long cross_track_test() +static int32_t cross_track_test() { - long temp = target_bearing - original_target_bearing; + int32_t temp = target_bearing - original_target_bearing; temp = wrap_180(temp); return abs(temp); }