File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
features/FEATURE_BLE/source/generic Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ static const GapScanningParams default_scan_params;
64
64
static const mbed_error_status_t mixed_scan_api_error =
65
65
MBED_MAKE_ERROR (MBED_MODULE_BLE, MBED_ERROR_CODE_BLE_USE_INCOMPATIBLE_API);
66
66
67
+ static const mbed_error_status_t illegal_state_error =
68
+ MBED_MAKE_ERROR (MBED_MODULE_BLE, MBED_ERROR_CODE_BLE_ILLEGAL_STATE);
69
+
70
+
67
71
/*
68
72
* Return true if value is included in the range [lower_bound : higher_bound]
69
73
*/
@@ -1792,6 +1796,8 @@ void GenericGap::on_connection_parameter_request(const pal::GapRemoteConnectionP
1792
1796
supervision_timeout_t (e.supervision_timeout )
1793
1797
)
1794
1798
);
1799
+ } else {
1800
+ MBED_ERROR (illegal_state_error, " Event handler required if connection params are user handled" );
1795
1801
}
1796
1802
} else {
1797
1803
_pal_gap.accept_connection_parameter_request (
Original file line number Diff line number Diff line change @@ -792,6 +792,7 @@ typedef enum _mbed_error_code {
792
792
MBED_DEFINE_SYSTEM_ERROR (AUTHENTICATION_FAILED , 69 ), /* 325 Authentication Failed */
793
793
MBED_DEFINE_SYSTEM_ERROR (RBP_AUTHENTICATION_FAILED , 70 ), /* 326 Rollback Protection Authentication Failed */
794
794
MBED_DEFINE_SYSTEM_ERROR (BLE_USE_INCOMPATIBLE_API , 71 ), /* 327 Concurrent use of incompatible versions of a BLE API */
795
+ MBED_DEFINE_SYSTEM_ERROR (BLE_ILLEGAL_STATE , 72 ), /* 328 BLE stack entered illegal state */
795
796
796
797
//Everytime you add a new system error code, you must update
797
798
//Error documentation under Handbook to capture the info on
You can’t perform that action at this time.
0 commit comments