This commit is contained in:
Gerolf Ziegenhain 2016-10-04 21:18:09 +02:00
parent 75c77b0cac
commit 5f9609ce0c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <sys/socket.h>
#include "cwprotocol.h"
/* Global variables */
@ -41,7 +42,7 @@ int prepare_tx (struct data_packet_format *tx_packet, char *id)
tx_packet->a21 = 0; /* These magic numbers was provided by Les Kerr */
tx_packet->a22 = 755;
tx_packet->a23 = 16777215;
snprintf(tx_packet->status, SIZE_STATUS, "no");
snprintf(tx_packet->status, SIZE_STATUS, "?"); // this shall include the sent character
return 0;
}

View File

@ -72,6 +72,7 @@ void txloop (void)
tx_data_packet.n++;
tx_data_packet.code[tx_data_packet.n - 1] =
(int) ((key_press_t1 - key_release_t1) * -1);
tx_data_packet.status[tx_data_packet.n - 1] = "xXx";
#ifdef DEBUG
printf("space: %i\n", tx_data_packet.code[tx_data_packet.n -1]);