From 331c85f4f371101d693dc7a3fdc2db5747fc6579 Mon Sep 17 00:00:00 2001 From: David Betz Date: Tue, 27 Jan 2015 17:10:16 -0500 Subject: [PATCH] Yet another typo. :-( --- osint_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osint_linux.c b/osint_linux.c index 9acf053..43f1b5a 100644 --- a/osint_linux.c +++ b/osint_linux.c @@ -54,8 +54,8 @@ static struct termios old_sparm; static int continue_terminal = 1; #ifdef RASPBERRY_PI -static propellerResetGpioPin = 17; -static propellerResetGpioLevel = 1; +static int propellerResetGpioPin = 17; +static int propellerResetGpioLevel = 1; #endif /* Normally we use DTR for reset */ @@ -68,7 +68,7 @@ int use_reset_method(char* method) else if (strcasecmp(method, "rts") == 0) reset_method = RESET_WITH_RTS; #ifdef RASPBERRY_PI - else if (strcasecmp(method, "gpio") == 0) + else if (strncasecmp(method, "gpio", 4) == 0) { reset_method = RESET_WITH_GPIO;