Reuse "Not connected" message in bleio
This commit is contained in:
parent
7bac10ab6e
commit
d553df95b0
|
@ -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_deinited(common_hal_bleio_characteristic_buffer_deinited(self));
|
||||||
raise_error_if_not_connected(self);
|
raise_error_if_not_connected(self);
|
||||||
if (!common_hal_bleio_characteristic_buffer_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;
|
mp_uint_t ret;
|
||||||
if (request == MP_IOCTL_POLL) {
|
if (request == MP_IOCTL_POLL) {
|
||||||
|
|
Loading…
Reference in New Issue