From 0a634b1223ac4545a50caf0c242e853fab2e15c4 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 30 Jan 2019 09:40:09 +0100 Subject: [PATCH] Fix some minor bugs :) --- CalPOCSAG.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CalPOCSAG.cpp b/CalPOCSAG.cpp index 55feb9d..0bd753d 100644 --- a/CalPOCSAG.cpp +++ b/CalPOCSAG.cpp @@ -44,18 +44,18 @@ void CCalPOCSAG::process() return; q15_t samples[200U]; - unt16_t length = 0U; + uint16_t length = 0U; if (space > 200U) space = 200U; - for (uint16_t i = 0U; i < space; i++, length++) + for (uint16_t i = 0U; i < space; i++, length++) { samples[i] = sine600Hz[m_audioSeq++]; if (m_audioSeq >= 40U) m_audioSeq = 0U; } - io.write(MODE_POCSAG, samples, length); + io.write(STATE_POCSAG, samples, length); } uint8_t CCalPOCSAG::write(const uint8_t* data, uint8_t length)