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 2db5a2b5e2
commit e3a74626d6
2 changed files with 7 additions and 1 deletions

View File

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

View File

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