- sym2bytes is public

- improved handling when data count is 0

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1085 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-26 12:34:32 +00:00
parent 8f84c733a8
commit 69a81ff7fc
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -87,6 +87,11 @@ size_t DeSymbolizer::sym2bytes(symbol_t symbol, uint8_t *pBytes)
static uint8_t byte;
size_t num_produced = 0;
if (m_dataBitCount == 0)
{
m_dataBitCount = 8;
}
// Transmission order MSB first
for (size_t i=0; i < m_nBitsPerSym; i++)
{