mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update 38-rpi-pibrella.js
Update to work with python3 on Bullseye
This commit is contained in:
parent
4805b3d13b
commit
67fc090256
@ -12,7 +12,7 @@ module.exports = function(RED) {
|
|||||||
throw "Info : Ignoring Raspberry Pibrella specific node.";
|
throw "Info : Ignoring Raspberry Pibrella specific node.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fs.existsSync("/usr/share/doc/python-rpi.gpio")) {
|
if (!fs.existsSync("/usr/share/doc/python3-rpi.gpio")) {
|
||||||
util.log("[rpi-pibrella] Info : Can't find RPi.GPIO python library.");
|
util.log("[rpi-pibrella] Info : Can't find RPi.GPIO python library.");
|
||||||
throw "Warning : Can't find RPi.GPIO python library.";
|
throw "Warning : Can't find RPi.GPIO python library.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user