Skip to content

Commit

Permalink
payload checksum must always be 2 symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
soshial committed Jun 30, 2021
1 parent 95fdefe commit ad300ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware_v5/telelogger/telelogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class CStorageRAM: public CStorage {
void tailer()
{
//if (m_cache[m_cacheBytes - 1] == ',') m_cacheBytes--;
m_cacheBytes += sprintf(m_cache + m_cacheBytes, "*%X", (unsigned int)checksum(m_cache, m_cacheBytes));
m_cacheBytes += sprintf(m_cache + m_cacheBytes, "*%02X", (unsigned int)checksum(m_cache, m_cacheBytes));
}
void untailer()
{
Expand Down

0 comments on commit ad300ec

Please sign in to comment.