Remove unnecessary prefix

master
Philip Heron 2010-10-12 11:43:18 +01:00
rodzic 829baad2bc
commit 9ae89d153e
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -23,7 +23,7 @@
#define MSG_SIZE (100) #define MSG_SIZE (100)
char msg[MSG_SIZE]; char msg[MSG_SIZE];
#define PREFIX "$$$$" #define PREFIX "$$"
/* Image TX data */ /* Image TX data */
uint8_t pkt[SSDV_PKT_SIZE], img[64]; uint8_t pkt[SSDV_PKT_SIZE], img[64];
@ -73,7 +73,6 @@ char tx_image(void)
} }
/* Got the packet! Transmit it */ /* Got the packet! Transmit it */
rtx_string_P(PSTR("UUU")); /* U = 0x55 */
rtx_data(pkt, SSDV_PKT_SIZE); rtx_data(pkt, SSDV_PKT_SIZE);
return(setup); return(setup);
@ -107,8 +106,8 @@ char tx_telemetry(void)
gps.longitude_i, gps.longitude_f, gps.longitude_i, gps.longitude_f,
gps.altitude, gps.fix, gps.sats); gps.altitude, gps.fix, gps.sats);
/* Append the checksum, skipping the first four $'s */ /* Append the checksum, skipping the $$ prefix */
crccat(msg + 4); crccat(msg + 2);
/* Begin transmitting */ /* Begin transmitting */
rtx_string(msg); rtx_string(msg);