X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_packet_slave.c;h=74b6d296d1fc45ab626238a3b7c08c830d0bd0d2;hb=c49bd3cb0c31a51fae79ddc92237cc309be9a242;hp=a5834799d7e8df306a907f3e793d14cb1df9f3cf;hpb=c11427819ca24bb77523496309b5b6f699d126c5;p=fw%2Faltos diff --git a/src/drivers/ao_packet_slave.c b/src/drivers/ao_packet_slave.c index a5834799..74b6d296 100644 --- a/src/drivers/ao_packet_slave.c +++ b/src/drivers/ao_packet_slave.c @@ -21,12 +21,12 @@ static void ao_packet_slave(void) { - ao_tx_packet.addr = ao_serial_number; + ao_tx_packet.addr = (uint8_t) ao_serial_number; ao_tx_packet.len = AO_PACKET_SYN; ao_packet_restart = 1; while (ao_packet_enable) { if (ao_packet_recv(0)) { - ao_xmemcpy(&ao_tx_packet.callsign, &ao_rx_packet.packet.callsign, AO_MAX_CALLSIGN); + memcpy(&ao_tx_packet.callsign, &ao_rx_packet.packet.callsign, AO_MAX_CALLSIGN); #if HAS_FLIGHT ao_flight_force_idle = true; #endif