raspberry_pi.c: update platform check for the PI 2 Version B
The latest Raspberry Pi 2 revision string is missing from the discovery function mraa_raspberry_pi() and results in incorrect pin mapping defaulting to PI_B Rev 1. Signed-off-by: Paul Barrette <paul.barrette@windriver.com> Signed-off-by: Paul Barrette <paulbarrette@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
2679a916be
commit
f6e87f63e0
@@ -245,7 +245,7 @@ mraa_raspberry_pi()
|
||||
b->platform_name = PLATFORM_NAME_RASPBERRY_PI_A_PLUS_REV_1;
|
||||
platform_detected = PLATFORM_RASPBERRY_PI_A_PLUS_REV_1;
|
||||
b->phy_pin_count = MRAA_RASPBERRY_PI_AB_PLUS_PINCOUNT;
|
||||
} else if (strstr(line, "a01041")) {
|
||||
} else if (strstr(line, "a01041") || strstr(line, "a21041")) {
|
||||
b->platform_name = PLATFORM_NAME_RASPBERRY_PI2_B_REV_1;
|
||||
platform_detected = PLATFORM_RASPBERRY_PI2_B_REV_1;
|
||||
b->phy_pin_count = MRAA_RASPBERRY_PI2_B_REV_1_PINCOUNT;
|
||||
|
||||
Reference in New Issue
Block a user