diff --git a/TODO b/TODO index e84841cf2e5602089d931f6f934168b13d0250c4..c7dbebc2d469d14b98ff7d79335101dcad75ccf2 100644 --- a/TODO +++ b/TODO @@ -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 diff --git a/virtualcoke.py b/virtualcoke.py index dea1004953da5bd81d614f4d6da863cf8dcf299f..9d41bb3bdc03ea4d00f495cd43eecccb8d20fa2f 100755 --- a/virtualcoke.py +++ b/virtualcoke.py @@ -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()