new feature: stopping keyer
This commit is contained in:
parent
be9ac6b074
commit
251c365095
3 changed files with 23 additions and 2 deletions
|
@ -23,6 +23,7 @@ enum class KeyerQueueCommand
|
|||
Run,
|
||||
Stop,
|
||||
Config,
|
||||
Wait,
|
||||
};
|
||||
struct KeyerQueueData
|
||||
{
|
||||
|
@ -69,11 +70,16 @@ void core1_main()
|
|||
keyer.run();
|
||||
break;
|
||||
case KeyerQueueCommand::Stop:
|
||||
keyer.stop();
|
||||
data.cmd = KeyerQueueCommand::Wait;
|
||||
break;
|
||||
case KeyerQueueCommand::Config:
|
||||
// set speed and wpm
|
||||
keyer.setSpeed(data.wpm);
|
||||
keyer.setMode(data.mode);
|
||||
data.cmd = KeyerQueueCommand::Run;
|
||||
break;
|
||||
case KeyerQueueCommand::Wait:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue