void cfg_ECG_options(void) { writeLCD_menu(1); op_multi_select(); if (read == 'A') { writeLCD_menu(2); reset_flag(); op_select(); if(read == 'A') { writeLCD_menu(3); reset_flag(); sendCode(nIns,0x94); enter_device_name(); } else if (read == 'B') { writeLCD_menu(4); reset_flag(); sendCode(nIns,0x94); enter_pass(); } } else if(read == 'B') { writeLCD_menu(5); reset_flag(); op_select(); if(read == 'A') { writeLCD_menu(6); reset_flag(); sendCode(nIns,0x9D); enter_fcc_p_bandas(); } else if (read == 'B') { writeLCD_menu(7); reset_flag(); sendCode(nIns,0x9D); enter_fcc_r_bandas(); } } else if(read == 'C') { reset_flag(); } }
void confirmacion(void) { show_cfg(); op_select(); if (read == 'A') { verificacion(); reset_flag(); if(error) { writeLCD_menu(9); op_select(); error = 0; } } reset_flag(); }
/* * change output plugin without stopping playback */ void player_set_op(const char *name) { int rc; player_lock(); /* drop needed because close drains the buffer */ if (consumer_status == CS_PAUSED) op_drop(); if (consumer_status == CS_PLAYING || consumer_status == CS_PAUSED) op_close(); if (name) { d_print("setting op to '%s'\n", name); rc = op_select(name); } else { /* first initialized plugin */ d_print("selecting first initialized op\n"); rc = op_select_any(); } if (rc) { __consumer_status_update(CS_STOPPED); __producer_stop(); if (name) player_op_error(rc, "selecting output plugin '%s'", name); else player_op_error(rc, "selecting any output plugin"); player_unlock(); return; } if (consumer_status == CS_PLAYING || consumer_status == CS_PAUSED) { set_buffer_sf(); rc = op_open(buffer_sf, buffer_channel_map); if (rc) { __consumer_status_update(CS_STOPPED); __producer_stop(); player_op_error(rc, "opening audio device"); player_unlock(); return; } if (consumer_status == CS_PAUSED) op_pause(); } player_unlock(); }