mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
barometer: support 'make purple' for barometer example code
This commit is contained in:
parent
2db5a2b5e2
commit
e3a74626d6
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user