Completely removed obsolete debug code
as suggested by James.
This commit is contained in:
parent
5f994c94b9
commit
cae4523d97
2 changed files with 1 additions and 12 deletions
|
@ -332,7 +332,7 @@ FGIO::parse_port_config( const string& config )
|
|||
{
|
||||
SG_LOG( SG_IO, SG_ALERT, "Unknown transport medium \"" << medium << "\" in \"" << config << "\"");
|
||||
delete io;
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return io;
|
||||
|
|
|
@ -56,25 +56,18 @@ static char calc_nmea_cksum(char *sentence) {
|
|||
unsigned char sum = 0;
|
||||
int i, len;
|
||||
|
||||
// cout << sentence << endl;
|
||||
|
||||
len = strlen(sentence);
|
||||
sum = sentence[0];
|
||||
for ( i = 1; i < len; i++ ) {
|
||||
// cout << sentence[i];
|
||||
sum ^= sentence[i];
|
||||
}
|
||||
// cout << endl;
|
||||
|
||||
// printf("sum = %02x\n", sum);
|
||||
return sum;
|
||||
}
|
||||
|
||||
|
||||
// generate Garmin message
|
||||
bool FGGarmin::gen_message() {
|
||||
// cout << "generating garmin message" << endl;
|
||||
|
||||
char rmc[256], rmc_sum[256], rmz[256], rmz_sum[256], gsa[256];
|
||||
char dir;
|
||||
int deg;
|
||||
|
@ -174,8 +167,6 @@ bool FGGarmin::gen_message() {
|
|||
garmin_sentence += gsa;
|
||||
garmin_sentence += "\r\n";
|
||||
|
||||
// std::cout << garmin_sentence;
|
||||
|
||||
length = garmin_sentence.length();
|
||||
strncpy( buf, garmin_sentence.c_str(), length );
|
||||
|
||||
|
@ -364,8 +355,6 @@ bool FGGarmin::parse_message() {
|
|||
|
||||
}
|
||||
|
||||
// printf("%.8f %.8f\n", lon, lat);
|
||||
|
||||
begin = begin_line;
|
||||
end_line = msg.find("\n", begin_line);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue