1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Update src/main/rx/rx.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
Anwar Minarso 2025-06-17 23:11:42 +07:00 committed by GitHub
parent b77c845e95
commit c78b07f78a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -809,7 +809,7 @@ bool calculateRxChannelsAndUpdateFailsafe(timeUs_t currentTimeUs)
void parseRcChannels(const char *input, rxConfig_t *rxConfig)
{
// Initialize all rc map values to 255 (indicating unmapped)
for (uint8_t i = 0; i < RX_MAPPABLE_CHANNEL_COUNT; i++) {
for (unsigned i = 0; i < RX_MAPPABLE_CHANNEL_COUNT; i++) {
rxConfig->rcmap[i] = RCMAP_UNMAPPED_INDEX;
}
for (const char *c = input; *c; c++) {