mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-26 21:33:16 +00:00
Kyosho updqte
fixed crash
This commit is contained in:
@@ -59,7 +59,7 @@ static void __attribute__((unused)) KYOSHO_send_packet()
|
||||
packet[ 0] = 0x58; // normal packet
|
||||
//FHSS 14 channels: steering, throttle, ...
|
||||
//Syncro 6 channels: steering, throttle, ...
|
||||
for(uint8_t i = 0; i < sub_protocol==KYOSHO_FHSS?14:6; i++)
|
||||
for(uint8_t i = 0; i < (sub_protocol==KYOSHO_FHSS?14:6); i++)
|
||||
{
|
||||
uint16_t temp=convert_channel_ppm(i);
|
||||
packet[9 + i*2]=temp&0xFF; // low byte of servo timing(1000-2000us)
|
||||
@@ -159,10 +159,10 @@ uint16_t KYOSHO_callback()
|
||||
telemetry_set_input_sync(packet_period);
|
||||
#endif
|
||||
}
|
||||
if(sub_protocol==KYOSHO_FHSS || sub_protocol==KYOSHO_SYNCRO)
|
||||
KYOSHO_send_packet();
|
||||
else//HYPE
|
||||
if(sub_protocol==KYOSHO_HYPE)
|
||||
KYOSHO_hype_send_packet();
|
||||
else //FHSS && SYNCRO
|
||||
KYOSHO_send_packet();
|
||||
return packet_period;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user