From bdc7bb447e9671a159bd9754ff84219db91cb439 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 8 Feb 2015 13:11:28 +0100 Subject: Fix code style in IO driver --- src/drivers/px4io/px4io_serial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/px4io/px4io_serial.cpp b/src/drivers/px4io/px4io_serial.cpp index 752f22d01..c6c0126f4 100644 --- a/src/drivers/px4io/px4io_serial.cpp +++ b/src/drivers/px4io/px4io_serial.cpp @@ -218,7 +218,7 @@ PX4IO_serial::~PX4IO_serial() stm32_unconfiggpio(PX4IO_SERIAL_RX_GPIO); /* Disable APB clock for the USART peripheral */ - modifyreg32(STM32_RCC_APB2ENR, RCC_APB2ENR_USART6EN, 0); + modifyreg32(STM32_RCC_APB2ENR, RCC_APB2ENR_USART6EN, 0); /* and kill our semaphores */ sem_destroy(&_completion_semaphore); @@ -252,7 +252,7 @@ PX4IO_serial::init() /* Enable the APB clock for the USART peripheral */ - modifyreg32(STM32_RCC_APB2ENR, 0, RCC_APB2ENR_USART6EN); + modifyreg32(STM32_RCC_APB2ENR, 0, RCC_APB2ENR_USART6EN); /* configure pins for serial use */ stm32_configgpio(PX4IO_SERIAL_TX_GPIO); -- cgit v1.2.3