Reuse "Not connected" message in bleio

This commit is contained in:
Radomir Dopieralski 2019-03-25 21:09:15 +01:00
parent 7bac10ab6e
commit d553df95b0

View File

@ -144,7 +144,7 @@ STATIC mp_uint_t bleio_characteristic_buffer_ioctl(mp_obj_t self_in, mp_uint_t r
raise_error_if_deinited(common_hal_bleio_characteristic_buffer_deinited(self));
raise_error_if_not_connected(self);
if (!common_hal_bleio_characteristic_buffer_connected(self)) {
mp_raise_ValueError(translate("Not connected."));
mp_raise_ValueError(translate("Not connected"));
}
mp_uint_t ret;
if (request == MP_IOCTL_POLL) {