mirror of https://github.com/ArduPilot/ardupilot
AP_Radio: increase short board names to 23 chars
This commit is contained in:
parent
56bec53e2c
commit
a6bbb13731
|
@ -365,7 +365,7 @@ void AP_Radio_cc2500::radio_init(void)
|
||||||
hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, AP_HAL::GPIO::INTERRUPT_RISING);
|
hal.gpio->attach_interrupt(HAL_GPIO_RADIO_IRQ, trigger_irq_radio_event, AP_HAL::GPIO::INTERRUPT_RISING);
|
||||||
|
|
||||||
// fill in rxid for use in double bind prevention
|
// fill in rxid for use in double bind prevention
|
||||||
char sysid[40] {};
|
char sysid[50] {};
|
||||||
hal.util->get_system_id(sysid);
|
hal.util->get_system_id(sysid);
|
||||||
uint16_t sysid_crc = calc_crc((const uint8_t *)sysid, strnlen(sysid, sizeof(sysid)));
|
uint16_t sysid_crc = calc_crc((const uint8_t *)sysid, strnlen(sysid, sizeof(sysid)));
|
||||||
if (sysid_crc == 0) {
|
if (sysid_crc == 0) {
|
||||||
|
|
Loading…
Reference in New Issue