break;
case 1:
- bluetooth_register_callback(bt_event_callback, NULL);
+ ret = bluetooth_register_callback(bt_event_callback, NULL);
if (ret < 0) {
TC_PRT("%s failed with [0x%04x]", tc_table[0].tc_name, ret);
tc_result(TC_FAIL, 1);
break;
case 2:
- bluetooth_unregister_callback();
+ ret = bluetooth_unregister_callback();
if (ret < 0) {
TC_PRT("%s failed with [0x%04x]", tc_table[1].tc_name, ret);
tc_result(TC_FAIL, 1);