From ca6aa9fcea3c8f4f5b7f099f54dea1f786041568 Mon Sep 17 00:00:00 2001 From: Brian Webb Date: Sat, 2 Feb 2013 01:53:39 +0000 Subject: [PATCH] Reformatted PPM output code to match coding standards. --- flight/PiOS/STM32F10x/pios_ppm_out.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flight/PiOS/STM32F10x/pios_ppm_out.c b/flight/PiOS/STM32F10x/pios_ppm_out.c index 6461f73b7..3b6834e4d 100644 --- a/flight/PiOS/STM32F10x/pios_ppm_out.c +++ b/flight/PiOS/STM32F10x/pios_ppm_out.c @@ -219,8 +219,7 @@ static void PIOS_PPM_OUT_tim_edge_cb (uint32_t tim_id, uint32_t context, uint8_t pulse_width = PIOS_PPM_OUT_FRAME_PERIOD_US - ppm_dev->ChannelSum; ppm_dev->NumChannelCounter = 0; ppm_dev->ChannelSum = 0; - } - else + } else ppm_dev->ChannelSum += (pulse_width = ppm_dev->ChannelValue[ppm_dev->NumChannelCounter++]); // Initiate the pulse