barometer: support 'make purple' for barometer example code

This commit is contained in:
Andrew Tridgell 2011-11-13 20:10:41 +11:00 committed by Pat Hickey
parent ca76f6d0ec
commit 0601f7e8ce
2 changed files with 7 additions and 1 deletions

View File

@ -13,8 +13,11 @@ unsigned long timer;
FastSerialPort0(Serial);
// set this to true on purple
#ifdef PURPLE_HARDWARE
static bool purple_hardware = true;
#else
static bool purple_hardware = false;
#endif
void setup()
{

View File

@ -1,2 +1,5 @@
BOARD = mega
include ../../../AP_Common/Arduino.mk
purple:
make -f Makefile EXTRAFLAGS="-DPURPLE_HARDWARE=1"