1 parent ccb3c6f commit 8dea6f5Copy full SHA for 8dea6f5
1 file changed
ports/nrf/common-hal/bleio/Characteristic.c
@@ -78,6 +78,7 @@ STATIC void gatts_read(bleio_characteristic_obj_t *characteristic) {
78
if (err_code == NRF_SUCCESS) {
79
characteristic->value_data = mp_obj_new_bytearray_of_zeros(gatts_value.len);
80
mp_get_buffer_raise(characteristic->value_data, &bufinfo, MP_BUFFER_WRITE);
81
+ gatts_value.p_value = bufinfo.buf;
82
83
// Read again, with the correct size of buffer.
84
err_code = sd_ble_gatts_value_get(conn_handle, characteristic->handle, &gatts_value);
0 commit comments