@ -141,7 +141,7 @@ void SetEEprom(void)
bConfig . Memory = 0 ;
bConfig . RiseTime = 5 ;
bConfig . RiseTimeCounter = 5 ;
bConfig . DebounceTime = 10 ;
bConfig . DebounceTime = 5 ;
WriteEEprom ( ) ;
}
/** @brief EEprom lesen
@ -314,7 +314,7 @@ void TXKey(uint8_t State)
{
if ( ( State ) & & ( bState . KeyState = = 0 ) )
{
if ( KeyTX)
if ( bState. KeyTX)
{
SidetoneOn ( ) ;
sbi ( PORTC , MORSE_LED ) ;
@ -325,7 +325,7 @@ void TXKey(uint8_t State)
{
if ( ( State = = 0 ) & & ( bState . KeyState ) )
{
if ( KeyTX)
if ( bState. KeyTX)
{
SidetoneOff ( ) ;
cbi ( PORTC , MORSE_LED ) ;
@ -451,7 +451,7 @@ void CheckPaddles(void)
*/
void CheckDitPaddle ( void )
{
static uint8_t pinvalue = 0 ;
uint8_t pinvalue = 0 ;
if ( PaddleMode = = PADDLE_NORMAL ) // no reverse paddle
pinvalue = PIND & ( 1 < < LEFT_PADDLE ) ;
@ -460,17 +460,7 @@ void CheckDitPaddle(void)
if ( pinvalue = = 0 ) // DitPaddle betätigt
{
if ( StatePaddleKeyPressed = = NO_KEY_PRESSED ) // Entprellen
{
StatePaddleKeyPressed = KEY_PRESSED_DEBOUNCE ;
TimerPaddleKeyPressed = 0 ;
}
if ( StatePaddleKeyPressed = = KEY_PRESSED ) // Debounce ok
{
SerialWriteString ( " 470:DitBuffer == 1 \r \n " ) ;
DitBuffer = 1 ;
StatePaddleKeyPressed = NO_KEY_PRESSED ;
}
DitBuffer = 1 ;
}
}
/*
@ -478,7 +468,7 @@ void CheckDitPaddle(void)
*/
void CheckDahPaddle ( void )
{
static uint8_t pinvalue = 0 ;
uint8_t pinvalue = 0 ;
if ( PaddleMode = = PADDLE_NORMAL ) // no reverse paddle
pinvalue = PIND & ( 1 < < RIGHT_PADDLE ) ;
@ -487,17 +477,7 @@ void CheckDahPaddle(void)
if ( pinvalue = = 0 )
{
if ( StatePaddleKeyPressed = = NO_KEY_PRESSED )
{
StatePaddleKeyPressed = KEY_PRESSED_DEBOUNCE ;
TimerPaddleKeyPressed = 0 ;
}
if ( StatePaddleKeyPressed = = KEY_PRESSED ) // Debounce ok
{
SerialWriteString ( " 496:DahBuffer == 1 \r \n " ) ;
DahBuffer = 1 ;
StatePaddleKeyPressed = NO_KEY_PRESSED ;
}
DahBuffer = 1 ;
}
}