kopia lustrzana https://github.com/mikaelnousiainen/RS41ng
Fix compilation error and formatting
rodzic
005dc0b3e5
commit
0b32abff31
|
@ -84,12 +84,12 @@ uint16_t ax25_encode_packet_aprs(char *source, uint8_t source_ssid, char *destin
|
||||||
size_t call_length = strlen(source);
|
size_t call_length = strlen(source);
|
||||||
memset(header->source, ' ', sizeof(header->source));
|
memset(header->source, ' ', sizeof(header->source));
|
||||||
memcpy(header->source, source, call_length < 6 ? call_length : 6);
|
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);
|
call_length = strlen(destination);
|
||||||
memset(header->destination, ' ', sizeof(header->destination));
|
memset(header->destination, ' ', sizeof(header->destination));
|
||||||
memcpy(header->destination, destination, call_length < 6 ? call_length : 6);
|
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;
|
char *digipeater_addresses_start = ((char *) header) + 1 + 14;
|
||||||
uint16_t digipeater_addresses_length = ax25_encode_digipeater_path(digipeater_addresses, digipeater_addresses_start);
|
uint16_t digipeater_addresses_length = ax25_encode_digipeater_path(digipeater_addresses, digipeater_addresses_start);
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
#define APRS_SYMBOL_TABLE '/' // '/' denotes primary and '\\' denotes alternate APRS symbol table
|
#define APRS_SYMBOL_TABLE '/' // '/' denotes primary and '\\' denotes alternate APRS symbol table
|
||||||
#define APRS_SYMBOL 'O'
|
#define APRS_SYMBOL 'O'
|
||||||
#define APRS_COMMENT "RS41ng radiosonde firmware test"
|
#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 "APZ41N"
|
||||||
#define APRS_DESTINATION_SSID '0'
|
#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.
|
// Generate an APRS weather report instead of a position report. This will override the APRS symbol with the weather station symbol.
|
||||||
|
|
Ładowanie…
Reference in New Issue