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

@@ -7,7 +7,7 @@ module.exports = function(RED) {
// unlikely if not on a Pi
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("Info : mcp3xxx : Not running on a Pi - Ignoring node");
}
else {