Update 38-rpi-pibrella.js (#1024)
Update to work with python3 on Bullseye
This commit is contained in:
parent
4805b3d13b
commit
d75beeebf4
|
@ -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…
Reference in New Issue