summaryrefslogtreecommitdiff
path: root/shared-bindings/bleio/Service.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-07-16 19:53:36 -0400
committerDan Halbert <halbert@halwitz.org>2019-07-16 19:53:36 -0400
commit364ee62d108bbdc1d4da8bb646a9332a68964b76 (patch)
treea35823d7f86e9c422f280823df71b960976ab242 /shared-bindings/bleio/Service.c
parentcb99546ea569bd91421e7ee0884c2756387a12d3 (diff)
Address review comments.
Diffstat (limited to 'shared-bindings/bleio/Service.c')
-rw-r--r--shared-bindings/bleio/Service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/bleio/Service.c b/shared-bindings/bleio/Service.c
index af215c6a5..db0606991 100644
--- a/shared-bindings/bleio/Service.c
+++ b/shared-bindings/bleio/Service.c
@@ -166,13 +166,13 @@ STATIC MP_DEFINE_CONST_DICT(bleio_service_locals_dict, bleio_service_locals_dict
STATIC void bleio_service_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
bleio_service_obj_t *self = MP_OBJ_TO_PTR(self_in);
- mp_printf(print, "Service(");
if (self->uuid) {
+ mp_printf(print, "Service(");
bleio_uuid_print(print, MP_OBJ_FROM_PTR(self->uuid), kind);
+ mp_printf(print, ")");
} else {
- mp_printf(print, "unregistered UUID");
+ mp_printf(print, "<Service with unregistered UUID>");
}
- mp_printf(print, ")");
}
const mp_obj_type_t bleio_service_type = {