Browse Source

Copter: correct typo in error #define

mission-4.1.18
Randy Mackay 12 years ago
parent
commit
77b5cb5d3f
  1. 2
      ArduCopter/defines.h
  2. 2
      ArduCopter/system.pde

2
ArduCopter/defines.h

@ -435,7 +435,7 @@ enum ap_message { @@ -435,7 +435,7 @@ enum ap_message {
#define ERROR_SUBSYSTEM_FAILSAFE_GPS 7
#define ERROR_SUBSYSTEM_FAILSAFE_GCS 8
#define ERROR_SUBSYSTEM_FAILSAFE_FENCE 9
#define ERROR_SUBSYSTEM_FLGHT_MODE 10
#define ERROR_SUBSYSTEM_FLIGHT_MODE 10
#define ERROR_SUBSYSTEM_GPS 11
// general error codes
#define ERROR_CODE_ERROR_RESOLVED 0

2
ArduCopter/system.pde

@ -479,7 +479,7 @@ static bool set_mode(uint8_t mode) @@ -479,7 +479,7 @@ static bool set_mode(uint8_t mode)
Log_Write_Mode(control_mode);
}else{
// Log error that we failed to enter desired flight mode
Log_Write_Error(ERROR_SUBSYSTEM_FLGHT_MODE,mode);
Log_Write_Error(ERROR_SUBSYSTEM_FLIGHT_MODE,mode);
}
// return success or failure

Loading…
Cancel
Save