Skip to content

Commit fe44873

Browse files
committed
Update error message
1 parent 536c119 commit fe44873

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎devices/ble_hci/common-hal/_bleio/__init__.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bool vm_used_ble;
3030

3131
// switch (sec_status) {
3232
// case BLE_GAP_SEC_STATUS_UNSPECIFIED:
33-
// mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. Can be that the pairing prompt on the other device was declined or ignored."));
33+
// mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. The pairing request on the other device may have been declined or ignored."));
3434
// return;
3535
// default:
3636
// mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unknown security error: 0x%04x"), sec_status);

‎locale/circuitpython.pot‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ msgstr ""
17411741
#: ports/nordic/common-hal/_bleio/__init__.c
17421742
#: ports/zephyr-cp/common-hal/_bleio/Connection.c
17431743
msgid ""
1744-
"Unspecified issue. Can be that the pairing prompt on the other device was "
1744+
"Unspecified issue. The pairing request on the other device may have been "
17451745
"declined or ignored."
17461746
msgstr ""
17471747

‎ports/nordic/common-hal/_bleio/__init__.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void check_sec_status(uint8_t sec_status) {
7070

7171
switch (sec_status) {
7272
case BLE_GAP_SEC_STATUS_UNSPECIFIED:
73-
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. Can be that the pairing prompt on the other device was declined or ignored."));
73+
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. The pairing request on the other device may have been declined or ignored."));
7474
return;
7575
default:
7676
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unknown security error: 0x%04x"), sec_status);

‎ports/zephyr-cp/common-hal/_bleio/Connection.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ void common_hal_bleio_connection_pair(bleio_connection_internal_t *self, bool bo
482482
// string.
483483
uint8_t sec_err_code = self->sec_err;
484484
if (sec_err_code == BT_SECURITY_ERR_UNSPECIFIED || sec_err_code == 0) {
485-
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. Can be that the pairing prompt on the other device was declined or ignored."));
485+
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unspecified issue. The pairing request on the other device may have been declined or ignored."));
486486
} else {
487487
mp_raise_bleio_SecurityError(MP_ERROR_TEXT("Unknown security error: 0x%04x"), sec_err_code);
488488
}

0 commit comments

Comments
 (0)