MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / port_wait_for_data_sync_pipe

Function port_wait_for_data_sync_pipe

src/iofunc.c:584–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584static 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
600static ssize_t port_read_sync_data_pipe(hamlib_port_t *p, void *buf,
601 size_t count)

Callers 1

port_wait_for_dataFunction · 0.85

Calls 1

port_read_sync_dataFunction · 0.85

Tested by

no test coverage detected