add more infos to ReserveResultPojo

This commit is contained in:
2022-03-08 20:58:22 +01:00
parent 8b84b6ad71
commit 32b30ca11a
6 changed files with 23 additions and 15 deletions
+5
View File
@@ -2,6 +2,9 @@ import logging
import serial
import params
from logs.LogSender import LOG_SUBJECT_EVENT, TYPE_EVENT_CHANGE_SLOT
PORT = "/dev/tty.usbmodem1432101"
BAUDRATE = 115200
@@ -28,6 +31,8 @@ class CardPool:
self._send_command("AT+NEXT11\r")
def switch_to_slot(self, slot_number: int):
params.oracle_log_sender.send_log(msg="换到" + str(slot_number) + "", source=LOG_SUBJECT_EVENT,
type=TYPE_EVENT_CHANGE_SLOT)
if slot_number < 10:
self._send_command("AT+SWIT00-000{}\r".format(slot_number))
else: