Fix compilation error and formatting

main
Mikael Nousiainen 2024-01-09 09:36:38 +02:00
rodzic 005dc0b3e5
commit 0b32abff31
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -84,12 +84,12 @@ uint16_t ax25_encode_packet_aprs(char *source, uint8_t source_ssid, char *destin
size_t call_length = strlen(source);
memset(header->source, ' ', sizeof(header->source));
memcpy(header->source, source, call_length < 6 ? call_length : 6);
header->source_ssid = (uint8_t) (source_ssid >= 'A' ? source_ssid - 7 : source_ssid);;
header->source_ssid = (uint8_t) (source_ssid >= 'A' ? source_ssid - 7 : source_ssid);
call_length = strlen(destination);
memset(header->destination, ' ', sizeof(header->destination));
memcpy(header->destination, destination, call_length < 6 ? call_length : 6);
header->destination_ssid = (uint8_t) destination_ssid >= 'A' ? destination_ssid - 7 : destination_ssid);;
header->destination_ssid = (uint8_t) (destination_ssid >= 'A' ? destination_ssid - 7 : destination_ssid);
char *digipeater_addresses_start = ((char *) header) + 1 + 14;
uint16_t digipeater_addresses_length = ax25_encode_digipeater_path(digipeater_addresses, digipeater_addresses_start);

Wyświetl plik

@ -275,7 +275,7 @@
#define APRS_SYMBOL_TABLE '/' // '/' denotes primary and '\\' denotes alternate APRS symbol table
#define APRS_SYMBOL 'O'
#define APRS_COMMENT "RS41ng radiosonde firmware test"
#define APRS_RELAYS "WIDE1-1,WIDE2-1" //Do not include any spaces in the APRS_RELAYS
#define APRS_RELAYS "WIDE1-1,WIDE2-1" // Do not include any spaces in the APRS_RELAYS
#define APRS_DESTINATION "APZ41N"
#define APRS_DESTINATION_SSID '0'
// Generate an APRS weather report instead of a position report. This will override the APRS symbol with the weather station symbol.