X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_packet_slave.c;h=314ce14a2bc3866406e54c9306eefc842ec307b0;hb=8a830c7f9ed41565c72edb85852e2df8bfa351f5;hp=b877128ab0ed78f1ed4da64702e87645b4ccd50c;hpb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;p=fw%2Faltos diff --git a/src/drivers/ao_packet_slave.c b/src/drivers/ao_packet_slave.c index b877128a..314ce14a 100644 --- a/src/drivers/ao_packet_slave.c +++ b/src/drivers/ao_packet_slave.c @@ -18,7 +18,7 @@ #include "ao.h" -void +static void ao_packet_slave(void) { ao_tx_packet.addr = ao_serial_number; @@ -26,9 +26,9 @@ ao_packet_slave(void) 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; + ao_flight_force_idle = true; #endif ao_packet_send(); }