Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
run: function (queue, qitem) {
if ((pind.pin < 0) || (pind.pin >= 64)) {
throw new Error("invalid " + pind.mode + " pin (out of range)");
}
pind.initialized = true;
firmata.SYSEX_RESPONSE[pind.sysex] = function (board) {
var driverd = {};
driverd[pind.code] = unpack_floats(board);
self.pulled(driverd);
};
self.board.sendString(pind.extension);
self.board.sendString("sysex=" + pind.sysex);
self.board.sendString("pin=" + pind.pin);
if (self.n > 1) {
self.board.sendString("n=" + self.n);
}
self.board.sendString("");
queue.finished(qitem);
}
});