diff --git a/src/serial_query.cpp b/src/serial_query.cpp index a0b7c00..987cd26 100644 --- a/src/serial_query.cpp +++ b/src/serial_query.cpp @@ -44,7 +44,7 @@ namespace create { void SerialQuery::flushInput() { // Only works with POSIX support - tcflush(port.lowest_layer().native(), TCIFLUSH); + tcflush(port.lowest_layer().native_handle(), TCIFLUSH); } void SerialQuery::processByte(uint8_t byteRead) {