prepare for sending messages
This commit is contained in:
parent
4a3dc6bd63
commit
c57f9251c2
2 changed files with 17 additions and 7 deletions
|
@ -51,6 +51,11 @@ void Keyer::run()
|
|||
{
|
||||
auto timestamp = get_absolute_time();
|
||||
|
||||
// If there is something to send …
|
||||
if (!m_messageQueue.empty()) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
// If we are in Straight key mode …
|
||||
if (m_mode == Mode::Straight) {
|
||||
if (left_paddle_pressed()) {
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <queue>
|
||||
#include <string>
|
||||
|
||||
#include "settings.h"
|
||||
#include "sidetone.h"
|
||||
|
||||
|
@ -40,4 +43,6 @@ class Keyer final
|
|||
bool m_currentlyKeying {false};
|
||||
bool m_currentlyPausing {false};
|
||||
bool m_keyNextIambicB {false};
|
||||
|
||||
std::queue<std::string> m_messageQueue;
|
||||
};
|
Loading…
Reference in a new issue