From 940bf18a1e0241a2031a2cb86de74804ac546886 Mon Sep 17 00:00:00 2001 From: Flos Date: Wed, 25 Jun 2025 00:15:08 +0200 Subject: [PATCH] Update neopixel.js to fix detection of RPi CM4 with Bookworm (#1098) My CM4 Module has in /proc/cpuinfo no " : BCM" text string, so the check for RPi fails. Instead it has a Model " : Raspberry Pi Compute Module 4 Rev 1.1" string. The Check was updated to use BCM or "Raspberry Pi" to check for Raspberry Pi Hardware. --- hardware/neopixel/neopixel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/neopixel/neopixel.js b/hardware/neopixel/neopixel.js index fc5c6c51..d3bb523b 100644 --- a/hardware/neopixel/neopixel.js +++ b/hardware/neopixel/neopixel.js @@ -10,7 +10,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("rpi-neopixels : "+RED._("node-red:rpi-gpio.errors.ignorenode")); allOK = false; }