diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2019-03-25 14:04:50 +0100 |
|---|---|---|
| committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2019-03-25 14:04:50 +0100 |
| commit | f440e41819ef87d433c8226aa27b764de51544cc (patch) | |
| tree | b4527fee452bbe154e0c02fab68d88d998d2dc85 | |
| parent | bb10a8aaa19ed662f7dda6500397432ed7b2e0c0 (diff) | |
Really fix the error messages in bleio, this time
| -rw-r--r-- | ports/nrf/common-hal/bleio/Characteristic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/nrf/common-hal/bleio/Characteristic.c b/ports/nrf/common-hal/bleio/Characteristic.c index c22072f3d..c9088c2ab 100644 --- a/ports/nrf/common-hal/bleio/Characteristic.c +++ b/ports/nrf/common-hal/bleio/Characteristic.c @@ -129,7 +129,7 @@ STATIC void gatts_notify_indicate(bleio_characteristic_obj_t *characteristic, mp const uint32_t err_code = sd_ble_gatts_hvx(conn_handle, &hvx_params); if (err_code != NRF_SUCCESS) { m_tx_in_progress--; - mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err x0%04x"), err_code); + mp_raise_OSError_msg_varg(translate("Failed to notify or indicate attribute value, err 0x%04x"), err_code); } } @@ -141,7 +141,7 @@ STATIC void gattc_read(bleio_characteristic_obj_t *characteristic) { const uint32_t err_code = sd_ble_gattc_read(conn_handle, characteristic->handle, 0); if (err_code != NRF_SUCCESS) { - mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err x0%04x"), err_code); + mp_raise_OSError_msg_varg(translate("Failed to read attribute value, err 0x%04x"), err_code); } // |
