Skip to content

Commit f440e41

Browse files
committed
Really fix the error messages in bleio, this time
1 parent bb10a8a commit f440e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/nrf/common-hal/bleio/Characteristic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ STATIC void gatts_notify_indicate(bleio_characteristic_obj_t *characteristic, mp
129129
const uint32_t err_code = sd_ble_gatts_hvx(conn_handle, &hvx_params);
130130
if (err_code != NRF_SUCCESS) {
131131
m_tx_in_progress--;
132-
mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err x0%04x"), err_code);
132+
mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err 0x%04x"), err_code);
133133
}
134134

135135
}
@@ -141,7 +141,7 @@ STATIC void gattc_read(bleio_characteristic_obj_t *characteristic) {
141141

142142
const uint32_t err_code = sd_ble_gattc_read(conn_handle, characteristic->handle, 0);
143143
if (err_code != NRF_SUCCESS) {
144-
mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err x0%04x"), err_code);
144+
mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err 0x%04x"), err_code);
145145
}
146146

147147
//

0 commit comments

Comments
 (0)