This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyModule = { | |
var self = { | |
buffer : "", | |
defaultSize : 20, | |
carriageReturn : "99" | |
}, | |
setup : function() { | |
// we could remove this function if there is nothing to do | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Setup join arrays for used joins monitoring and clearing | |
for (var join in gui.allJoins) { | |
joinType = gui.allJoins[join].charCodeAt(0); | |
joinNumber = parseInt(gui.allJoins[join].substr(1)); | |
if ((joinType == 0x64) && (joinNumber >= self.DJoin_Low) && (joinNumber <= self.DJoin_High) && (joinNumber != self.DJoin_connectedFB) && (!self.PageJoins[gui.allJoins[join]])) { //digital | |
self.DJoins.push(gui.allJoins[join]); | |
self.ClearJoins.push({join:gui.allJoins[join], value:0}); | |
} else if ((joinType == 0x61) && (joinNumber >= self.AJoin_Low) && (joinNumber <= self.AJoin_High)) { //analog | |
self.AJoins.push(gui.allJoins[join]); |