Skip to content

Commit

Permalink
Fix data dumping length bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Feb 28, 2017
1 parent 1dbaec9 commit 36eeb6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ RESP_TYPE_MMDVM CModem::getResponse()

// CUtils::dump(1U, "Received", m_buffer, m_length);

return RTM_OK;
return RTM_OK;
}

HW_TYPE CModem::getHWType() const
Expand Down Expand Up @@ -1337,7 +1337,7 @@ void CModem::dumpSamples()
return;
}

::fwrite(m_buffer + 6U, 1U, m_length, fp);
::fwrite(m_buffer + 6U, 1U, m_length - 6U, fp);

::fclose(fp);
}

0 comments on commit 36eeb6c

Please sign in to comment.