DSM2 renamed to DSM

This commit is contained in:
pascallanger
2016-09-01 14:00:42 +02:00
parent 6e59897587
commit e51615f520
6 changed files with 22 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ struct t_serial_bash
#endif
#if defined DSM_TELEMETRY
void DSM2_frame()
void DSM_frame()
{
Serial_write(0xAA); // Start
for (uint8_t i = 0; i < 17; i++) // RSSI value followed by 16 bytes of telemetry data
@@ -452,9 +452,9 @@ void TelemetryUpdate()
#endif
#if defined DSM_TELEMETRY
if(telemetry_link && (cur_protocol[0]&0x1F) == MODE_DSM2 )
{ // DSM2
DSM2_frame();
if(telemetry_link && (cur_protocol[0]&0x1F) == MODE_DSM )
{ // DSM
DSM_frame();
telemetry_link=0;
return;
}