Remove unnecessary floating-point calculation

This commit is contained in:
Petr Ledvina 2015-10-09 13:18:48 +02:00 committed by Dominic Clifton
parent fba2c3d5cc
commit 8f6de3e553
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ bool sbusInit(rxConfig_t *rxConfig, rxRuntimeConfig_t *rxRuntimeConfig, rcReadRa
{
int b;
for (b = 0; b < SBUS_MAX_CHANNEL; b++)
sbusChannelData[b] = (1.6f * rxConfig->midrc) - 1408;
sbusChannelData[b] = (16 * rxConfig->midrc) / 10 - 1408;
if (callback)
*callback = sbusReadRawRC;
rxRuntimeConfig->channelCount = SBUS_MAX_CHANNEL;