mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Little extra loading error handling for BBB node
This commit is contained in:
parent
0a5b184dad
commit
9170cc6282
@ -41,6 +41,7 @@ module.exports = function (RED) {
|
|||||||
bonescript.pinMode(pin, direction, callback);
|
bonescript.pinMode(pin, direction, callback);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
try {
|
||||||
bonescript = require("bonescript");
|
bonescript = require("bonescript");
|
||||||
adjustName = function (pin) {
|
adjustName = function (pin) {
|
||||||
return pin;
|
return pin;
|
||||||
@ -48,6 +49,9 @@ module.exports = function (RED) {
|
|||||||
setPinMode = function (pin, direction, callback) {
|
setPinMode = function (pin, direction, callback) {
|
||||||
bonescript.pinMode(pin, direction, undefined, undefined, undefined, callback);
|
bonescript.pinMode(pin, direction, undefined, undefined, undefined, callback);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
throw "Info : Ignoring Beaglebone specific node.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node constructor for bbb-analogue-in
|
// Node constructor for bbb-analogue-in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user