Рефактор
This commit is contained in:
@@ -34,6 +34,7 @@ def on_timer(*args):
|
||||
sock.sendto(bytes(tx_data, 'utf-8'), (udp_addr, udp_port_tx))
|
||||
Timer(1, on_timer, args).start()
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
parser.add_argument('--modbus-unit', default=1, type=int, help='Номер устройства Modbus')
|
||||
|
||||
@@ -49,7 +49,7 @@ rname = "A22"
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 862.0
|
||||
offset_right = 175.0
|
||||
offset_right = 168.0
|
||||
offset_bottom = 907.0
|
||||
fname = "ДОУ-6"
|
||||
rname = "A7"
|
||||
@@ -58,7 +58,7 @@ rname = "A7"
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 907.0
|
||||
offset_right = 175.0
|
||||
offset_right = 168.0
|
||||
offset_bottom = 949.0
|
||||
fname = "MAA2000"
|
||||
rname = "A23"
|
||||
@@ -67,7 +67,7 @@ rname = "A23"
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 812.0
|
||||
offset_right = 175.0
|
||||
offset_right = 168.0
|
||||
offset_bottom = 860.0
|
||||
fname = "ДОУ-7"
|
||||
rname = "A8"
|
||||
|
||||
Reference in New Issue
Block a user