fix debug modus, add CAN Connector-Module
This commit is contained in:
parent
77082c62ca
commit
1621080721
8 changed files with 123 additions and 34 deletions
|
|
@ -33,7 +33,8 @@ class Request(object):
|
|||
|
||||
def REST_start():
|
||||
api = REST()
|
||||
print 'REST-Thread:\t%s\n' % api
|
||||
if conf['config_debug']:
|
||||
print 'REST-Thread:\t%s\n' % api
|
||||
api.app.run(host = conf['flask_server'],
|
||||
port = int(conf['flask_port']))
|
||||
#debug = conf['flask_debug']
|
||||
|
|
@ -48,7 +49,7 @@ class REST(object):
|
|||
|
||||
### Start EMS thread ###
|
||||
self.EMS = ems(self.buf)
|
||||
self.emsthread = self.EMS.start()
|
||||
self.EMS.start()
|
||||
|
||||
if conf['config_debug']:
|
||||
print 'EMS-Thread:\t', self.EMS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue