wip
This commit is contained in:
parent
63300fa955
commit
746b1dcfe5
@ -75,7 +75,9 @@ void txloop (void)
|
|||||||
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);
|
||||||
|
|
||||||
//printf("space: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
#ifdef DEBUG
|
||||||
|
printf("space: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
||||||
|
#endif
|
||||||
#ifdef TX_SERIAL
|
#ifdef TX_SERIAL
|
||||||
while(serial_status & TIOCM_DSR) ioctl(fd_serial, TIOCMGET, &serial_status);
|
while(serial_status & TIOCM_DSR) ioctl(fd_serial, TIOCMGET, &serial_status);
|
||||||
#endif
|
#endif
|
||||||
@ -88,7 +90,9 @@ void txloop (void)
|
|||||||
tx_data_packet.code[tx_data_packet.n - 1] =
|
tx_data_packet.code[tx_data_packet.n - 1] =
|
||||||
(int) ((key_release_t1 - key_press_t1) * 1);
|
(int) ((key_release_t1 - key_press_t1) * 1);
|
||||||
|
|
||||||
//printf("mark: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
#ifdef DEBUG
|
||||||
|
printf("mark: %i\n", tx_data_packet.code[tx_data_packet.n -1]);
|
||||||
|
#endif
|
||||||
while(1){
|
while(1){
|
||||||
#ifdef TX_SERIAL
|
#ifdef TX_SERIAL
|
||||||
ioctl(fd_serial, TIOCMGET, &serial_status);
|
ioctl(fd_serial, TIOCMGET, &serial_status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user