Add ASSERTATION_FAILED error code

pull/8255/head
MateuszMaz 2018-10-04 20:47:16 +02:00
parent c3e7ddbb10
commit a2f3c59768
2 changed files with 3 additions and 2 deletions

View File

@ -29,5 +29,5 @@ void mbed_assert_internal(const char *expr, const char *file, int line)
char error_message[error_message_length];
snprintf(error_message, error_message_length, "%s%s", error_description, expr);
mbed_error(MBED_ERROR_INVALID_ARGUMENT, error_message, 0, file, line);
mbed_error(MBED_ERROR_ASSERTATION_FAILED, error_message, 0, file, line);
}

View File

@ -780,7 +780,8 @@ typedef enum _mbed_error_code {
MBED_DEFINE_SYSTEM_ERROR(BLE_NO_FRAME_INITIALIZED, 65), /* 321 BLE No frame initialized */
MBED_DEFINE_SYSTEM_ERROR(BLE_BACKEND_CREATION_FAILED, 66), /* 322 BLE Backend creation failed */
MBED_DEFINE_SYSTEM_ERROR(BLE_BACKEND_NOT_INITIALIZED, 67), /* 323 BLE Backend not initialized */
MBED_DEFINE_SYSTEM_ERROR(ASSERTATION_FAILED, 68), /* 324 Assertation Failed */
//Everytime you add a new system error code, you must update
//Error documentation under Handbook to capture the info on
//the new error status/codes