WiringPi: Update in response to the latest regulations about I2C/SPI nodes

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ia6992332b157a6b078f5d1f67b280d2fc3a09774
This commit is contained in:
Deokgyu Yang
2020-08-24 14:48:59 +09:00
parent 912e3d952b
commit 5ebe86a95c
3 changed files with 16 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ static void doI2Cdetect (UNU int argc, char *argv [])
port = 1;
break;
case MODEL_ODROID_XU3:
if (cmpKernelVersion(KERN_NUM_TO_REVISION, 5, 4, 0))
if (cmpKernelVersion(KERN_NUM_TO_MAJOR, 5))
port = 0;
else
port = 1;