From fc45dd229ab94d74be043b704d060f3b18d9688c Mon Sep 17 00:00:00 2001 From: Ryan Mullin Date: Tue, 3 Jul 2018 10:10:36 -0700 Subject: [PATCH] Fixed misleading indent warning in bcm2835.c --- utility/RPi/bcm2835.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utility/RPi/bcm2835.c b/utility/RPi/bcm2835.c index 6f5833ba6..0f774fa2c 100644 --- a/utility/RPi/bcm2835.c +++ b/utility/RPi/bcm2835.c @@ -420,8 +420,8 @@ uint32_t bcm2835_gpio_pad(uint8_t group) if (bcm2835_pads == MAP_FAILED) return 0; - volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group; - return bcm2835_peri_read(paddr); + volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group; + return bcm2835_peri_read(paddr); } /* Set GPIO pad behaviour for groups of GPIOs @@ -433,8 +433,8 @@ void bcm2835_gpio_set_pad(uint8_t group, uint32_t control) if (bcm2835_pads == MAP_FAILED) return; - volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group; - bcm2835_peri_write(paddr, control | BCM2835_PAD_PASSWRD); + volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group; + bcm2835_peri_write(paddr, control | BCM2835_PAD_PASSWRD); } /* Some convenient arduino-like functions