Reduced number of SPI operations when reading RF packets

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-10-28 23:07:14 +02:00
parent 72cb29eca2
commit b3cac834e2
2 changed files with 9 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ void sbusPreparePacket(uint8_t packet[], int channels[], bool isSignalLoss, bool
* 173-1811 with middle at 992 S.BUS protocol requires
*/
for (uint8_t i = 0; i < SBUS_CHANNEL_NUMBER; i++) {
output[i] = mapsChannelToSbus(channels[i]);
output[i] = mapChannelToSbus(channels[i]);
}
uint8_t stateByte = 0x00;