Bit more tidying

qcpfix
Phil Taylor 2023-02-18 14:25:36 +00:00
rodzic 62f923d8ad
commit 5fb9588c4a
1 zmienionych plików z 4 dodań i 8 usunięć

Wyświetl plik

@ -118,12 +118,10 @@ void cwSidetone::send(QString text)
{
text=text.simplified();
QString currentChar;
int pos = 0;
while (pos < text.size())
for (int pos=0; pos < text.size(); pos++)
{
QChar ch = text.at(pos).toUpper();
QString currentChar;
if (ch == NULL)
{
currentChar = cwTable[' '];
@ -137,15 +135,13 @@ void cwSidetone::send(QString text)
currentChar=cwTable['?'];
}
generateMorse(currentChar);
pos++;
}
//qInfo(logCW()) << "Sending" << this->currentChar;
if (output->state() == QAudio::StoppedState)
{
output->start(this);
}
if (output->state() == QAudio::IdleState) {
else if (output->state() == QAudio::IdleState) {
output->suspend();
output->resume();
}