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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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.";
}