use port info in params.py
This commit is contained in:
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user