add debug toggle to config
This commit is contained in:
parent
30b424eb26
commit
5ee010bbf8
2 changed files with 3 additions and 1 deletions
|
@ -7,4 +7,6 @@ config.mysql_database = 'autohome';
|
|||
|
||||
config.crypto_secret = 'crypto secret key';
|
||||
|
||||
config.debug = false;
|
||||
|
||||
module.exports = config;
|
|
@ -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
|
||||
|
|
Reference in a new issue