Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Change the Raspberry Pi detection logic. #766
This PR aims to solve an issue with the detection of a raspberry pi within the GpioController.
At the moment the /dev/cpuinfo is read to identify the Pi but it seems that the Pi info is only made available within Raspbian.
To resolve this the detection mechanism is augmented by reading the device tree to find the Raspberry Pi identifier. If there are any issues with reading the device tree or the identifier is not found then it falls back to original detection logic.