Skip to content
Snippets Groups Projects
Commit 2a8794d0 authored by Mark Tearle's avatar Mark Tearle
Browse files

Bind to alternative port if not root

parent 39be3f79
No related merge requests found
......@@ -4,8 +4,9 @@ DONE Front panel buttons
DONE Front panel out of drinks lamps
DONE Hidden slot buttons
DONE Hidden other buttons
DONE Coin Return Button
DONE Hook up modbus
DONE Test against dispense
DONE Modbus alternative port
Hook up modbus
Test against dispense
Write up documentation
Coin Return Button
Write up documentation
......@@ -356,6 +356,9 @@ if __name__ == "__main__":
context = modbus_setup(App)
reactor.registerNpyscreenApp(App)
StartModbusAsyncServer(context)
try:
StartModbusAsyncServer(context)
except:
StartModbusAsyncServer(context, address=("", 1502))
reactor.run()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment