Merge pull request #311 from benlye/multi-status-fix

Fix module status on erSkyTX
This commit is contained in:
pascallanger 2020-01-11 10:20:03 +01:00 committed by GitHub
commit edbf4b6908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,11 @@ static void multi_send_status()
multi_send_header(MULTI_TELEMETRY_STATUS, 24);
else
#endif
#ifdef MULTI_TELEMETRY
multi_send_header(MULTI_TELEMETRY_STATUS, 6);
#else
multi_send_header(MULTI_TELEMETRY_STATUS, 5);
#endif
// Build flags
uint8_t flags=0;
@ -167,7 +171,9 @@ static void multi_send_status()
Serial_write(VERSION_PATCH_LEVEL);
// Channel order
#ifdef MULTI_TELEMETRY
Serial_write(RUDDER<<6|THROTTLE<<4|ELEVATOR<<2|AILERON);
#endif
#ifdef MULTI_NAMES
if(multi_protocols_index != 0xFF)