if (bluetooth_check_adapter() == BLUETOOTH_ADAPTER_DISABLED) {
if (vconf_get_int(BT_FILE_VISIBLE_TIME, &timeout) != 0) {
BT_ERR("Fail to get the timeout value");
- return BLUETOOTH_ERROR_INTERNAL;
+ return BLUETOOTH_ERROR_DEVICE_NOT_ENABLED;
}
if (timeout == -1) {
return BLUETOOTH_ERROR_NONE;
}
+#else
+ BT_CHECK_ENABLED(return);
#endif
BT_INIT_PARAMS();