diff --git a/main.py b/main.py index eba90a9..92226db 100644 --- a/main.py +++ b/main.py @@ -158,17 +158,19 @@ def start_listen(): def on_ready_for_otp(e: Event, commandor: CommandorPage): - print("on_ready_for_otp() called.") + logger.info("on_ready_for_otp() called.") global thread_event thread_event = e def start_book(): - slot_number = 3 - slot_sum = 8 + slot_number = 1 + slot_sum = 1 for i in range(slot_number, slot_sum + 1): card_pool.reset() logger.info("will switch to " + str(i)) + global current_card_pool_slot + current_card_pool_slot = i card_pool.switch_to_slot(i) modem_pool = ModemPool(get_devices_ports()) modem_pool.reset_all_modems()