From f347572fc20fbc2da85edec7fbbd4be5f4d44e20 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 Jun 2012 17:09:23 +1000 Subject: [PATCH] SITL: map() is a C++ function, so needs to be in C++ part of the header this fixes the ACM build --- libraries/Desktop/include/wiring.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/Desktop/include/wiring.h b/libraries/Desktop/include/wiring.h index edeec227d8..5eb449f5e4 100644 --- a/libraries/Desktop/include/wiring.h +++ b/libraries/Desktop/include/wiring.h @@ -113,8 +113,6 @@ int analogRead(uint8_t); void analogReference(uint8_t mode); void analogWrite(uint8_t, int); -long map(long , long , long , long , long ); - unsigned long millis(void); unsigned long micros(void); void delay(unsigned long); @@ -133,5 +131,6 @@ void detachInterrupt(uint8_t); void setup(void); void loop(void); +long map(long , long , long , long , long ); #endif