is_Pi() function MAC address range #1531
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #1528
the reboot/restart buttons are currently set to show if ran on a raspberry pi. the is_Pi() function checks the device's mac address starts with the range associated to the raspberry pi foundation.
NOT TESTED ON RASPBERRY PI 4
added new mac address range for rpi4.
does the raspberry pi 4 has a different mac address range?? please comment if you know.
If you run this on your raspberry pi4 you should get your mac address for the ethernet and wifi network controllers...
Found reference to
dc:a6:32:
as the OUI for raspberry pi trading (owned by raspberry pi foundation)please comment if you have a raspberry pi 4 and your mac address doesn't start with
dc:a6:32:
so that I can amend this pull request with the correct values.