~goby-dev/goby/2.1

« back to all changes in this revision

Viewing changes to src/acomms/modemdriver/iridium_shore_driver.cpp

  • Committer: Toby Schneider
  • Date: 2015-08-20 21:28:23 UTC
  • mfrom: (538.1.57 goby-2.1)
  • Revision ID: toby@gobysoft.org-20150820212823-3kzyfovc1ngsd11w
Merge various bug fixes and feature that adds destination-based encryption passphrases for Queue

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
    {
271
271
        std::string decoded_line;
272
272
 
273
 
        if(data == "goby\r")
 
273
        if(data == "goby\r" || data == "\0goby\r") // sometimes Iridium adds a 0x00 to the start of transmission
274
274
        {
275
275
            glog.is(DEBUG1) && glog << "Detected start of Goby RUDICS connection from " <<  connection->remote_endpoint_str() << std::endl;
276
276
        }
314
314
    catch(RudicsPacketException& e)
315
315
    {
316
316
        glog.is(DEBUG1) && glog <<  warn << "Could not decode packet: " << e.what() << std::endl;
 
317
        connection->add_packet_failure();
317
318
    }
318
319
}
319
320