static int time_init(void) { if (!main_opts.gatt_enabled) { DBG("GATT is disabled"); return -ENOTSUP; } return time_server_init(); }
static int time_init(void) { if (!main_opts.attrib_server) { DBG("Attribute server is disabled"); return -1; } return time_server_init(); }