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

This commit is contained in:
Glenn Ruben Bakke 2017-03-12 14:28:11 +01:00
parent 851705fc3a
commit 7ea966d844
1 changed files with 7 additions and 1 deletions

View File

@ -34,11 +34,17 @@
#include "ble_drv.h"
STATIC void ubluepy_scanner_print(const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) {
ubluepy_scanner_obj_t * self = (ubluepy_scanner_obj_t *)o;
(void)self;
mp_printf(print, "Scanner");
}
const mp_obj_type_t ubluepy_scanner_type = {
{ &mp_type_type },
.name = MP_QSTR_Scanner,
#if 0
.print = ubluepy_scanner_print,
#if 0
.make_new = ubluepy_scanner_make_new,
.locals_dict = (mp_obj_t)&ubluepy_scanner_locals_dict
#endif