mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
barometer: support 'make purple' for barometer example code
This commit is contained in:
parent
ca76f6d0ec
commit
0601f7e8ce
@ -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()
|
||||
{
|
||||
|
@ -1,2 +1,5 @@
|
||||
BOARD = mega
|
||||
include ../../../AP_Common/Arduino.mk
|
||||
|
||||
purple:
|
||||
make -f Makefile EXTRAFLAGS="-DPURPLE_HARDWARE=1"
|
||||
|
Loading…
Reference in New Issue
Block a user