Eliminate a direct libserialport dependency in the OLS device driver.
Use libsigrok's internal serial layer's API instead to check for the
availability of receive data.
g_usleep(RESPONSE_DELAY_US);
- if (sp_input_waiting(serial->sp_data) == 0) {
+ if (serial_has_receive_data(serial) == 0) {
sr_dbg("Didn't get any reply.");
return NULL;
}
g_usleep(RESPONSE_DELAY_US);
- if (sp_input_waiting(serial->sp_data) != 0) {
+ if (serial_has_receive_data(serial) != 0) {
/* Got metadata. */
sdi = get_metadata(serial);
} else {