添加了5个电磁阀+修改了传送带传感器的逻辑
This commit is contained in:
@ -116,7 +116,7 @@ class ServoController:
|
||||
def cleanup(self):
|
||||
"""清理资源"""
|
||||
self.disable_all_servos()
|
||||
if self.port_handler.is_open():
|
||||
if self.port_handler.is_open:
|
||||
self.port_handler.closePort()
|
||||
logging.info("串口已关闭")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user