use port info in params.py

This commit is contained in:
2022-03-17 11:12:50 +01:00
parent 7ca23a2274
commit 677bf36599
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -113,9 +113,9 @@ def handle_sms(sms):
logger.info("will close used modem")
current_gsm_modem.close()
else:
logger.info("the sms is not for RDV")
logger.info("The sms is not for RDV")
else:
logger.info("the sms is not for today")
logger.info("The sms is not for today")
def init_modems() -> list:
+1 -3
View File
@@ -5,8 +5,6 @@ import serial
import params
from logs.LogSender import LOG_SUBJECT_EVENT, TYPE_EVENT_CHANGE_SLOT
PORT = "/dev/tty.usbmodem1432101"
BAUDRATE = 115200
@@ -45,7 +43,7 @@ class CardPool:
if __name__ == '__main__':
card_pool = CardPool(PORT)
card_pool = CardPool(params.CARD_POOL_PORT)
# print(card_pool.find_current_slot())
card_pool.reset()
# card_pool.switch_to_next()