more cleanup

This commit is contained in:
Martin Brodbeck 2024-02-28 14:43:27 +01:00
parent 1cc6f82e5c
commit 1ba9653578

View file

@ -1,7 +1,6 @@
#pragma once
#include <queue>
//#include <string>
#include "settings.h"
#include "sidetone.h"
@ -14,7 +13,6 @@ class Keyer final
void setMode(Mode mode) { m_mode = mode; }
void setSpeed(uint8_t wpm);
//void sendMessage(std::string msg);
void sendCharacter(const char ch);
void run();
@ -31,13 +29,13 @@ class Keyer final
};
enum class MessageState {
Wait,
Dit,
Dah,
IntraCharSpace,
InterCharSpace,
InterWordSpace,
Abort,
Wait,
Dit,
Dah,
IntraCharSpace,
InterCharSpace,
InterWordSpace,
Abort,
};
uint8_t m_wpm {18};
@ -54,7 +52,7 @@ class Keyer final
std::queue<char> m_messageQueue;
MessageState m_messageKeyingState {MessageState::Wait};
char m_messageChar{};
char m_messageChar {};
uint64_t m_elementDuration {0};
bool m_currentlyKeying {false};