[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tlf-devel] first cwdaemon-0.8 beta
From: |
Joop Stakenborg |
Subject: |
Re: [Tlf-devel] first cwdaemon-0.8 beta |
Date: |
Fri, 12 Dec 2003 20:47:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031105 Thunderbird/0.3 |
Rein Couperus wrote:
Hello Joop,
tnx for the work, it sounds excellent now, also with weight 0 and 42wpm.
At first try I noticed that when a message is aborted, and after the abort one
more char is sent, the character space between the last 2 chars does not
occur...
E.g.: if the message is TU 73, and you abort just after starting the 7:
- the 3 is sent although the message is aborted during the 7
- however the character space between the 7 and the 3 is not sent.
Quick and dirty patch attached.
Can you make tune<0> (zero value) unlimited until hitting tune again (toggle
function)? (This to make tlf compatible with TRlog and CT).
Will do.
I will do more tests tomorrow.
73's, Rein PA0R
This version might be ready for test-driving in the ARRL 10m contest.....
Regards,
Joop
diff -r -u cwdaemon-0.8beta1/cwdaemon.c cwdaemon/cwdaemon.c
--- cwdaemon-0.8beta1/cwdaemon.c 2003-12-08 20:26:05.000000000 +0100
+++ cwdaemon/cwdaemon.c 2003-12-12 20:41:20.000000000 +0100
@@ -105,6 +105,7 @@
int forking = 1; /* we fork by default */
int ptt_timer_running = 0; /* flag for PTT state */
int bandswitch;
+int aborting = 0;
struct timeval now, end, left; /* PTT timers */
struct timespec sleeptime, remainder; /* delay timers */
@@ -365,6 +366,7 @@
morsetext[0] = '\0';
cw_flush_tone_queue ();
debug ("Message abort");
+ aborting = 1;
break;
case '5': /* exit */
cwdev->free (cwdev);
@@ -546,8 +548,13 @@
}
}
debug ("Morse = %c", c);
- cw_send_character (c); /* will be sent immediately */
- cw_tone_queue_wait_critical (1);
+ if (aborting != 1)
+ {
+ cw_send_character (c);
+ cw_tone_queue_wait_critical (1);
+ }
+ else
+ aborting = 0;
if (cw_get_gap () == 2) cw_set_gap (0);
}
x++;
- [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/08
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/08
- Re: [Tlf-devel] first cwdaemon-0.8 beta,
Joop Stakenborg <=
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/12
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Joop Stakenborg, 2003/12/13
- Re: [Tlf-devel] first cwdaemon-0.8 beta, Rein Couperus, 2003/12/13