diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-09-15 11:38:58 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-15 15:29:13 +1000 |
commit | 5be3bfcb7e065bd95eb8460d2069524b934bcd0f (patch) | |
tree | 615acf1da9244f4f42dc191e6c78931924025abf /extmod/modbluetooth.c | |
parent | 19faf550904c4e93427450994b7babe367eb9add (diff) |
extmod/modbluetooth: Print UUIDs correctly.
In particular, the printed string can now be re-evaluated to construct the
same UUID object.
Diffstat (limited to 'extmod/modbluetooth.c')
-rw-r--r-- | extmod/modbluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modbluetooth.c b/extmod/modbluetooth.c index 64cd38352..f77c7eb63 100644 --- a/extmod/modbluetooth.c +++ b/extmod/modbluetooth.c @@ -181,7 +181,7 @@ STATIC void bluetooth_uuid_print(const mp_print_t *print, mp_obj_t self_in, mp_p (void)kind; mp_obj_bluetooth_uuid_t *self = MP_OBJ_TO_PTR(self_in); - mp_printf(print, "UUID%u(%s", self->type * 8, self->type <= 4 ? "0x" : "'"); + mp_printf(print, "UUID(%s", self->type <= 4 ? "0x" : "'"); for (int i = 0; i < self->type; ++i) { if (i == 4 || i == 6 || i == 8 || i == 10) { mp_printf(print, "-"); |