From 6afc99dc6c1701779aecfbaf1bcee1802808022b Mon Sep 17 00:00:00 2001 From: chen3135 Date: Sun, 28 Apr 2019 10:32:57 +0800 Subject: [PATCH] Update wiringPi/wiringPi.c --- wiringPi/wiringPi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index cfc1587..d093c4e 100755 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -2384,6 +2384,7 @@ int wiringPiSetup (void) if ((int32_t)(unsigned long)OrangePi_gpioC == -1) return wiringPiFailure(WPI_ALMOST, "wiringPiSetup: mmap (GPIO) failed: %s\n", strerror(errno)); +#endif #else /* CONFIG_ORANGEPI_RK3399 */ gpio2_base = (uint32_t *)mmap(0, BLOCK_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED, fd, GPIO2_BASE); if ((int32_t)(unsigned long)gpio2_base == -1) @@ -2416,7 +2417,6 @@ int wiringPiSetup (void) -#endif #endif /* CONFIG_ORANGEPI_RK3399 */ #endif