node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

Update neopixel.js to fix detection of RPi CM4 with Bookworm

Open Flos opened this issue 8 months ago • 1 comments

Types of changes

  • [ x] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)

Proposed changes

My CM4 Module has in /proc/cpuinfo no " : BCM" text string Wich leads to a false, failing Hardware check, and the NeoPixel nodes are ignored.

Instead of the "BCM" chip, /proc/cpuinfo shows "Hardware : Raspberry Pi Compute Module 4 Rev 1.1".

The Check was updated to use ": BCM" or ": Raspberry Pi" to check for Raspberry Pi Hardware.

Checklist

  • [ x] I have read the contribution guidelines
  • [ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • [ ] I have run grunt to verify the unit tests pass
  • [ ] I have added suitable unit tests to cover the new/changed functionality

Flos avatar Jun 16 '25 12:06 Flos