Update 38-rpi-pibrella.js (#1024)

Update to work with python3 on Bullseye
This commit is contained in:
Simon Walters
2023-08-19 14:36:35 +01:00
committed by GitHub
parent 4805b3d13b
commit d75beeebf4

View File

@@ -12,7 +12,7 @@ module.exports = function(RED) {
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.");
throw "Warning : Can't find RPi.GPIO python library.";
}