nrf5/modules: Changed return in ubluepy addService() function to return mp_const_none instead of boolean.

This commit is contained in:
Glenn Ruben Bakke 2017-02-18 17:59:10 +01:00
parent 63ed32ecaa
commit 15d7353cb3
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ STATIC mp_obj_t service_add_characteristic(mp_obj_t self_in, mp_obj_t characteri
p_char->p_service = self;
}
return mp_obj_new_bool(retval);
// return mp_obj_new_bool(retval);
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(ubluepy_service_add_char_obj, service_add_characteristic);