add debug toggle to config

This commit is contained in:
Stefan Sterz 2016-02-25 13:00:00 +01:00
parent 30b424eb26
commit 5ee010bbf8
2 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,6 @@ config.mysql_database = 'autohome';
config.crypto_secret = 'crypto secret key';
config.debug = false;
module.exports = config;

View File

@ -12,7 +12,7 @@ var rc_db = new models.RCDB();
var users = new models.Users();
// Arduino communications
var arduino = new arcom.Arduino(true);
var arduino = new arcom.Arduino(config.debug);
var rc = new arcom.RC(arduino);
// Get arduino ready