From 08bf317f9cba34368adae0dedfbd679f92ee5386 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 29 Feb 2024 14:31:35 +0100 Subject: [PATCH] send all supported chars to message queue --- src/winkeyer.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/winkeyer.cpp b/src/winkeyer.cpp index 1eb2ff2..8b0b75b 100644 --- a/src/winkeyer.cpp +++ b/src/winkeyer.cpp @@ -17,23 +17,17 @@ void WinKeyer::run(queue_t &queue) if (count > 0) { switch (buf[0]) { - case 'a' ... 'z': + case '\"': [[fallthrough]]; - case 'A' ... 'Z': + case '$': [[fallthrough]]; - case '0' ... '9': + case '\'': [[fallthrough]]; - case ' ': + case '(': [[fallthrough]]; - case '+': + case ')': [[fallthrough]]; - case '=': - [[fallthrough]]; - case '?': - [[fallthrough]]; - case ',': - [[fallthrough]]; - case '.': { + case '+' ... ']': { KeyerQueueData keyerQueueData {KeyerQueueCommand::SendMessage, 0, Mode::IambicB, buf[0]}; queue_add_blocking(&queue, &keyerQueueData); break;