1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

Reformatted PPM output code to match coding standards.

This commit is contained in:
Brian Webb 2013-02-02 01:53:39 +00:00
parent 18c592a37a
commit ca6aa9fcea

View File

@ -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; pulse_width = PIOS_PPM_OUT_FRAME_PERIOD_US - ppm_dev->ChannelSum;
ppm_dev->NumChannelCounter = 0; ppm_dev->NumChannelCounter = 0;
ppm_dev->ChannelSum = 0; ppm_dev->ChannelSum = 0;
} } else
else
ppm_dev->ChannelSum += (pulse_width = ppm_dev->ChannelValue[ppm_dev->NumChannelCounter++]); ppm_dev->ChannelSum += (pulse_width = ppm_dev->ChannelValue[ppm_dev->NumChannelCounter++]);
// Initiate the pulse // Initiate the pulse