X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao.h;h=5f2b83394daf96eb78abd5f89bff2fb92ec35388;hb=ebeb13688a9a5442c838641ede6ba0dc92c9a1a4;hp=a2dfadd00fb72438f302865cc73059eabd53e9d9;hpb=11d155d558d0b121b66f089adee0a47d71f65a78;p=fw%2Faltos diff --git a/src/ao.h b/src/ao.h index a2dfadd0..5f2b8339 100644 --- a/src/ao.h +++ b/src/ao.h @@ -562,7 +562,7 @@ struct ao_log_record { /* Write a record to the eeprom log */ void -ao_log_data(struct ao_log_record *log); +ao_log_data(__xdata struct ao_log_record *log) __reentrant; /* Flush the log */ void @@ -804,7 +804,7 @@ ao_gps_report_init(void); */ #define AO_MAX_CALLSIGN 8 -#define AO_TELEMETRY_VERSION 2 +#define AO_TELEMETRY_VERSION 3 struct ao_telemetry { uint8_t addr; @@ -1034,7 +1034,7 @@ struct ao_fifo { * Packet-based command interface */ -#define AO_PACKET_MAX 8 +#define AO_PACKET_MAX 64 #define AO_PACKET_SYN (uint8_t) 0xff struct ao_packet { @@ -1043,6 +1043,7 @@ struct ao_packet { uint8_t seq; uint8_t ack; uint8_t d[AO_PACKET_MAX]; + uint8_t callsign[AO_MAX_CALLSIGN]; }; struct ao_packet_recv {