mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user