From 9a20d9ca91b721733d5e3496ee8b63aa79fb11bf Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Tue, 14 Mar 2017 21:27:29 +0100 Subject: [PATCH] nrf5/modules/ubluepy: Adding print function to scan_entry object. --- nrf5/modules/ubluepy/ubluepy_scan_entry.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nrf5/modules/ubluepy/ubluepy_scan_entry.c b/nrf5/modules/ubluepy/ubluepy_scan_entry.c index 48328e1921..f614d4f049 100644 --- a/nrf5/modules/ubluepy/ubluepy_scan_entry.c +++ b/nrf5/modules/ubluepy/ubluepy_scan_entry.c @@ -34,11 +34,17 @@ #include "ble_drv.h" +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"); +} + const mp_obj_type_t ubluepy_scan_entry_type = { { &mp_type_type }, .name = MP_QSTR_ScanEntry, -#if 0 .print = ubluepy_scan_entry_print, +#if 0 .make_new = ubluepy_scan_entry_make_new, .locals_dict = (mp_obj_t)&ubluepy_scan_entry_locals_dict #endif