Fixed zero divide in race conditions
Fixed zero divide in race conditions
In DSDSymbol::pushSample
the m_count
variable could be zero if some other thread resets it. In case it is zero it means the symbol sequence should be restarted. This should fix a possible program crash that was detected in SDRangel (issue: f4exb/sdrangel#406). In DSDcc this should fix #24
Issue when changing decode mode
When changing decode mode with DSDDecoder::setDecodeMode
the state was not re-initialized properly resulting in the decoder being stuck in the previous mode. In consequence when changing baud rate in SDRangel the decoder could not detect the modes relevant to the new baud rate.