nrf5/modules/ubluepy: Adding print function to scan_entry object.

This commit is contained in:
Glenn Ruben Bakke 2017-03-14 21:27:29 +01:00
parent 4a97cfe3ea
commit 9a20d9ca91
1 changed files with 7 additions and 1 deletions

View File

@ -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