Final (I hope) Iambic B tweak

This commit is contained in:
Neale Pickett 2022-04-23 21:23:05 -06:00
parent 8a82a4dc43
commit af1d5ddbc7
1 changed files with 12 additions and 4 deletions

View File

@ -333,8 +333,12 @@ class Keyer {
*/
Dit(down) {
this.ditDown = down
if (down && this.typeahead || !this.Busy()) {
this.Enqueue(DIT, this.typeahead)
if (down) {
if (this.typeahead
|| !this.Busy()
|| (this.iambicModeB && (this.last == DAH))) {
this.Enqueue(DIT)
}
}
}
@ -345,8 +349,12 @@ class Keyer {
*/
Dah(down) {
this.dahDown = down
if (down && this.typeahead || !this.Busy()) {
this.Enqueue(DAH, this.typeahead)
if (down) {
if (this.typeahead
|| !this.Busy()
|| (this.iambicModeB && (this.last == DIT))) {
this.Enqueue(DAH)
}
}
}
}