|
|
|
|
|
|
|
|
uint8_t len, buf[6]; |
|
|
uint8_t len, buf[6]; |
|
|
|
|
|
|
|
|
if (!FlightSim.enabled || !name) return; |
|
|
if (!FlightSim.enabled || !name) return; |
|
|
len = strlen_P((const prog_char*)name); |
|
|
|
|
|
|
|
|
len = strlen_P((const char *)name); |
|
|
buf[0] = len + 6; |
|
|
buf[0] = len + 6; |
|
|
buf[1] = 1; |
|
|
buf[1] = 1; |
|
|
buf[2] = id; |
|
|
buf[2] = id; |
|
|
|
|
|
|
|
|
uint8_t len, buf[6]; |
|
|
uint8_t len, buf[6]; |
|
|
|
|
|
|
|
|
if (!FlightSim.enabled || !name) return; |
|
|
if (!FlightSim.enabled || !name) return; |
|
|
len = strlen_P((const prog_char*)name); |
|
|
|
|
|
|
|
|
len = strlen_P((const char *)name); |
|
|
buf[0] = len + 6; |
|
|
buf[0] = len + 6; |
|
|
buf[1] = 1; |
|
|
buf[1] = 1; |
|
|
buf[2] = id; |
|
|
buf[2] = id; |
|
|
|
|
|
|
|
|
uint8_t len, buf[6]; |
|
|
uint8_t len, buf[6]; |
|
|
|
|
|
|
|
|
if (!FlightSim.enabled || !name) return; |
|
|
if (!FlightSim.enabled || !name) return; |
|
|
len = strlen_P((const prog_char*)name); |
|
|
|
|
|
|
|
|
len = strlen_P((const char *)name); |
|
|
buf[0] = len + 6; |
|
|
buf[0] = len + 6; |
|
|
buf[1] = 1; |
|
|
buf[1] = 1; |
|
|
buf[2] = id; |
|
|
buf[2] = id; |
|
|
|
|
|
|
|
|
void FlightSimClass::xmit(const uint8_t *p1, uint8_t n1, const _XpRefStr_ *p2, uint8_t n2) |
|
|
void FlightSimClass::xmit(const uint8_t *p1, uint8_t n1, const _XpRefStr_ *p2, uint8_t n2) |
|
|
{ |
|
|
{ |
|
|
uint8_t intr_state, total, avail; |
|
|
uint8_t intr_state, total, avail; |
|
|
const prog_char *s2 = (const prog_char *)p2; |
|
|
|
|
|
|
|
|
const char *s2 = (const char *)p2; |
|
|
|
|
|
|
|
|
total = n1 + n2; |
|
|
total = n1 + n2; |
|
|
if (total > FLIGHTSIM_TX_SIZE) return; |
|
|
if (total > FLIGHTSIM_TX_SIZE) return; |