prepare for sending messages

This commit is contained in:
Martin Brodbeck 2024-02-23 09:18:02 +01:00
parent 4a3dc6bd63
commit c57f9251c2
2 changed files with 17 additions and 7 deletions

View file

@ -51,6 +51,11 @@ void Keyer::run()
{ {
auto timestamp = get_absolute_time(); auto timestamp = get_absolute_time();
// If there is something to send …
if (!m_messageQueue.empty()) {
// TODO
}
// If we are in Straight key mode … // If we are in Straight key mode …
if (m_mode == Mode::Straight) { if (m_mode == Mode::Straight) {
if (left_paddle_pressed()) { if (left_paddle_pressed()) {

View file

@ -1,5 +1,8 @@
#pragma once #pragma once
#include <queue>
#include <string>
#include "settings.h" #include "settings.h"
#include "sidetone.h" #include "sidetone.h"
@ -40,4 +43,6 @@ class Keyer final
bool m_currentlyKeying {false}; bool m_currentlyKeying {false};
bool m_currentlyPausing {false}; bool m_currentlyPausing {false};
bool m_keyNextIambicB {false}; bool m_keyNextIambicB {false};
std::queue<std::string> m_messageQueue;
}; };