APMrover2: define ENABLE as ENABLED

Same for DISABLE as typo error protection
This commit is contained in:
Pierre Kancir 2016-08-28 14:24:32 +02:00
parent fdafa4561c
commit b16369ec8c
2 changed files with 8 additions and 4 deletions

View File

@ -33,10 +33,6 @@
/// change in your local copy of APM_Config.h.
///
// Just so that it's completely clear...
#define ENABLED 1
#define DISABLED 0
//////////////////////////////////////////////////////////////////////////////
// sensor types

View File

@ -7,6 +7,14 @@
#define TRUE 1
#define FALSE 0
// Just so that it's completely clear...
#define ENABLED 1
#define DISABLED 0
// this avoids a very common config error
#define ENABLE ENABLED
#define DISABLE DISABLED
#define DEBUG 0
#define SERVO_MAX 4500 // This value represents 45 degrees and is just an arbitrary representation of servo max travel.