Add test for Pi4/5 to some of the Pi specific nodes in the hardware group (#1074)

* Add test for Pi4/5

* Fix PR template

* Actually test
This commit is contained in:
Ben Hardill
2024-06-30 15:45:47 +01:00
committed by GitHub
parent 305327faaa
commit 61ee4bda4b
6 changed files with 10 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ module.exports = function(RED) {
try {
var cpuinfo = fs.readFileSync("/proc/cpuinfo").toString();
if (cpuinfo.indexOf(": BCM") === -1) {
if (cpuinfo.indexOf(": BCM") === -1 && cpuinfo.indexOf(": Raspberry Pi") === -1) {
RED.log.warn("ledborg : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
allOK = false;
}