Fix minor typo
authorJeremy Tan <[email protected]>
Fri, 27 Sep 2013 06:47:51 +0000 (14:47 +0800)
committerJeremy Tan <[email protected]>
Fri, 27 Sep 2013 06:47:51 +0000 (14:47 +0800)
server/bbb_pin.c

index db18f69..f351f53 100644 (file)
@@ -316,7 +316,7 @@ bool GPIO_Set(int pin, bool value)
        }
 
        GPIO_Pin *gpio = &g_gpio[g_pin_gpio_to_index[pin]];
-       if (gpio->initialised)
+       if (!gpio->initialised)
        {
                AbortBool("GPIO %d is not initialised.", pin);
        }

UCC git Repository :: git.ucc.asn.au