wip
This commit is contained in:
parent
75c77b0cac
commit
5f9609ce0c
|
@ -1,5 +1,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "cwprotocol.h"
|
#include "cwprotocol.h"
|
||||||
|
|
||||||
/* Global variables */
|
/* 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->a21 = 0; /* These magic numbers was provided by Les Kerr */
|
||||||
tx_packet->a22 = 755;
|
tx_packet->a22 = 755;
|
||||||
tx_packet->a23 = 16777215;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,6 +72,7 @@ void txloop (void)
|
||||||
tx_data_packet.n++;
|
tx_data_packet.n++;
|
||||||
tx_data_packet.code[tx_data_packet.n - 1] =
|
tx_data_packet.code[tx_data_packet.n - 1] =
|
||||||
(int) ((key_press_t1 - key_release_t1) * -1);
|
(int) ((key_press_t1 - key_release_t1) * -1);
|
||||||
|
tx_data_packet.status[tx_data_packet.n - 1] = "xXx";
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("space: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
printf("space: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
||||||
|
|
Loading…
Reference in New Issue