mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-02-21 06:57:27 -05:00
disable delay before starting CW, allow straight key values through the paddle resistors, set correct timeout
This commit is contained in:
parent
e35a2addf9
commit
e67885d8a0
@ -38,7 +38,7 @@ static const unsigned int cwAdcDotTo = 600;
|
|||||||
static const unsigned int cwAdcDashFrom = cwAdcDotTo + 1;
|
static const unsigned int cwAdcDashFrom = cwAdcDotTo + 1;
|
||||||
static const unsigned int cwAdcDashTo = 800;
|
static const unsigned int cwAdcDashTo = 800;
|
||||||
|
|
||||||
static const unsigned int delayBeforeCWStartTime = 50;
|
static const unsigned int delayBeforeCWStartTime = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts transmitting the carrier with the sidetone
|
* Starts transmitting the carrier with the sidetone
|
||||||
@ -93,7 +93,7 @@ char update_PaddleLatch(bool isUpdateKeyState) {
|
|||||||
else{
|
else{
|
||||||
if (KeyerMode_e::KEYER_STRAIGHT != globalSettings.keyerMode)
|
if (KeyerMode_e::KEYER_STRAIGHT != globalSettings.keyerMode)
|
||||||
tmpKeyerControl = 0 ;
|
tmpKeyerControl = 0 ;
|
||||||
else if (paddle <= cwAdcSTTo)
|
else if (paddle <= cwAdcDashTo)
|
||||||
tmpKeyerControl = DIT_L ;
|
tmpKeyerControl = DIT_L ;
|
||||||
else
|
else
|
||||||
tmpKeyerControl = 0 ;
|
tmpKeyerControl = 0 ;
|
||||||
@ -209,7 +209,7 @@ void cwKeyer(void){
|
|||||||
//DelayTime Option
|
//DelayTime Option
|
||||||
active_delay(delayBeforeCWStartTime * 2);
|
active_delay(delayBeforeCWStartTime * 2);
|
||||||
|
|
||||||
globalSettings.cwExpirationTimeMs = millis() + globalSettings.cwDitDurationMs;
|
globalSettings.cwExpirationTimeMs = millis() + globalSettings.cwActiveTimeoutMs;
|
||||||
}
|
}
|
||||||
cwKeydown();
|
cwKeydown();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user