1
0
mirror of https://github.com/richardghirst/PiBits.git synced 2025-02-26 19:54:16 +01:00

Add modelstr for raspberry :pi 3

Fixes richardghirst/PiBits#62
This commit is contained in:
Reuben Peeris 2017-06-09 15:27:08 +01:00
parent 96014c804d
commit 5238be8abc
2 changed files with 2 additions and 0 deletions

BIN
ServoBlaster/user/servod Executable file

Binary file not shown.

View File

@ -959,6 +959,8 @@ get_model_and_revision(void)
board_model = 1; board_model = 1;
else if (strstr(modelstr, "BCM2709")) else if (strstr(modelstr, "BCM2709"))
board_model = 2; board_model = 2;
else if (strstr(modelstr, "BCM2835"))
board_model = 3;
else else
fatal("servod: Cannot parse the hardware name string\n"); fatal("servod: Cannot parse the hardware name string\n");