mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
13 lines
373 B
Python
13 lines
373 B
Python
from serial import Serial
|
|
from ..Consts import Config
|
|
from ..Utils import create_command, send_command
|
|
|
|
|
|
def create_elimate_warning_command(DEVICE_ADDRESS):
|
|
return create_command(DEVICE_ADDRESS, 0x06, 0x0145, 0x0087)
|
|
|
|
|
|
def run_elimate_warning(ser: Serial, DEVICE_ADDRESS):
|
|
send_command(ser, create_elimate_warning_command(DEVICE_ADDRESS))
|
|
print("清除警报")
|