Improve comment accuracy.

This commit is contained in:
Jared Boone 2015-11-10 15:11:19 -08:00
parent 99871dcb84
commit e6351ca066

View File

@ -299,7 +299,7 @@ static std::string ais_format_navigational_status(const unsigned int value) {
decoded_packet packet_decode(const std::bitset<1024>& payload, const size_t payload_length) { decoded_packet packet_decode(const std::bitset<1024>& payload, const size_t payload_length) {
// TODO: Unstuff here, not in baseband! // TODO: Unstuff here, not in baseband!
// Subtract end flag (6 bits) + one unstuffing bit (occurs during end flag). // Subtract end flag (8 bits) - one unstuffing bit (occurs during end flag).
const size_t data_and_fcs_length = payload_length - 7; const size_t data_and_fcs_length = payload_length - 7;
if( data_and_fcs_length < 38 ) { if( data_and_fcs_length < 38 ) {