Рефактор

This commit is contained in:
sasha80
2025-10-09 22:51:50 +03:00
parent 71178ced2d
commit dfab026c11

View File

@@ -78,7 +78,7 @@ class SocketSerial extends SerialPort:
fcs = (fcs >> 1) ^ P_DIV if fcs & 1 else fcs >> 1
return (~fcs) & 0xffff
func try_open(parsing_proc: Callable):
func try_open(parsing_proc: Callable) -> Error:
if is_open():
return Error.OK
var rc: = open(port)