add more infos to ReserveResultPojo
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user