diff --git a/nodes/core/io/25-serial.js b/nodes/core/io/25-serial.js index ef122e8a3..b4c08af26 100644 --- a/nodes/core/io/25-serial.js +++ b/nodes/core/io/25-serial.js @@ -1,5 +1,5 @@ /** -* Copyright 2013,2014 IBM Corp. +* Copyright 2013,2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ module.exports = function(RED) { this.serialConfig.stopbits, this.serialConfig.newline); node.addCh = ""; - if (node.serialConfig.addchar == "true") { + if (node.serialConfig.addchar == "true" || node.serialConfig.addchar === true) { node.addCh = this.serialConfig.newline.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0"); } node.on("input",function(msg) {