fix debug modus, add CAN Connector-Module

This commit is contained in:
Philipp Rauch 2014-03-20 16:15:01 +01:00
parent 77082c62ca
commit 1621080721
8 changed files with 123 additions and 34 deletions

View file

@ -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