Add a guard ifdef to catch folks trying to build APM with the wrong board selected.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@517 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-09-14 15:22:08 +00:00
parent b0d81d3b68
commit 0f53cc4c8e
1 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,10 @@
#include <avr/interrupt.h>
#include "WProgram.h"
#if !defined(__AVR_ATmega1280__)
# error Please check the Tools/Board menu to ensure you have selected Arduino Mega as your target.
#else
// Variable definition for Input Capture interrupt
volatile unsigned int ICR4_old;
volatile unsigned char PPM_Counter=0;
@ -184,4 +188,6 @@ void APM_RC_Class::Force_Out6_Out7(void)
}
// make one instance for the user to use
APM_RC_Class APM_RC;
APM_RC_Class APM_RC;
#endif // defined(ATMega1280)