This commit is contained in:
mstroh76
2024-03-09 19:29:42 +01:00
parent 39663ba396
commit 6590de3ef4
9 changed files with 160 additions and 164 deletions

View File

@@ -368,7 +368,7 @@ static void doUnLoad (int argc, char *argv [])
static void doI2Cdetect (UNU int argc, char *argv [])
{
int port = piGpioLayout () == 1 ? 0 : 1 ;
int port = piGpioLayout () == GPIO_LAYOUT_PI1_REV1 ? 0 : 1 ;
char *c, *command ;
if ((c = findExecutable (I2CDETECT)) == NULL)