| 582 | } |
| 583 | |
| 584 | static int port_wait_for_data_sync_pipe(hamlib_port_t *p) |
| 585 | { |
| 586 | unsigned char data; |
| 587 | int result; |
| 588 | |
| 589 | // Use a zero-length read to wait for data in pipe |
| 590 | result = port_read_sync_data(p, &data, 0); |
| 591 | |
| 592 | if (result > 0) |
| 593 | { |
| 594 | return RIG_OK; |
| 595 | } |
| 596 | |
| 597 | return result; |
| 598 | } |
| 599 | |
| 600 | static ssize_t port_read_sync_data_pipe(hamlib_port_t *p, void *buf, |
| 601 | size_t count) |
no test coverage detected