From 08883c619a676eb6a1019df7ed8b8864f6546cc0 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Tue, 14 Mar 2017 22:12:33 +0100 Subject: [PATCH] nrf5/modules/ubluepy: Extending print of ScanEntry object to also include the bluetooth le address. --- nrf5/modules/ubluepy/ubluepy_scan_entry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nrf5/modules/ubluepy/ubluepy_scan_entry.c b/nrf5/modules/ubluepy/ubluepy_scan_entry.c index f614d4f049..c6b957de3b 100644 --- a/nrf5/modules/ubluepy/ubluepy_scan_entry.c +++ b/nrf5/modules/ubluepy/ubluepy_scan_entry.c @@ -37,7 +37,10 @@ STATIC void ubluepy_scan_entry_print(const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) { ubluepy_scan_entry_obj_t * self = (ubluepy_scan_entry_obj_t *)o; (void)self; - mp_printf(print, "ScanEntry"); + mp_printf(print, "ScanEntry(addr: "HEX2_FMT":"HEX2_FMT":"HEX2_FMT":" \ + HEX2_FMT":"HEX2_FMT":"HEX2_FMT")", + self->addr[0], self->addr[1], self->addr[2], + self->addr[3], self->addr[4], self->addr[5]); } const mp_obj_type_t ubluepy_scan_entry_type = {