X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_aprs.c;h=826985c6e06e2f0b004a05c36a2b6976cd6a49ba;hb=8a830c7f9ed41565c72edb85852e2df8bfa351f5;hp=2f17d04401eade3379e538874870991c3ba1bd04;hpb=382b3ef62a09e580834b07faf9ed2d00e5ce1621;p=fw%2Faltos diff --git a/src/drivers/ao_aprs.c b/src/drivers/ao_aprs.c index 2f17d044..826985c6 100644 --- a/src/drivers/ao_aprs.c +++ b/src/drivers/ao_aprs.c @@ -234,7 +234,7 @@ static void timeInit() #define TNC_TX_DELAY 45 /// The size of the TNC output buffer. -#define TNC_BUFFER_SIZE 40 +#define TNC_BUFFER_SIZE 48 /// States that define the current mode of the 1200 bps (A-FSK) state machine. typedef enum @@ -527,7 +527,7 @@ static int tncComment(uint8_t *buf) int16_t apogee = ao_ignite_decivolt(AO_SENSE_DROGUE(&packet)); #endif #ifdef AO_SENSE_MAIN - int16_t main = ao_ignite_decivolt(AO_SENSE_MAIN(&packet)); + int16_t main_value = ao_ignite_decivolt(AO_SENSE_MAIN(&packet)); #endif return sprintf((char *) buf, @@ -548,8 +548,8 @@ static int tncComment(uint8_t *buf) apogee%10 #endif #ifdef AO_SENSE_MAIN - , main/10, - main%10 + , main_value/10, + main_value%10 #endif , ao_serial_number );