This commit is contained in:
Frederik Menke 2023-12-10 14:06:20 +01:00
parent 221ab355d5
commit cb64502a02

View file

@ -77,6 +77,9 @@ impl Printer {
}
pub async fn connect(port_path: &str) -> Result<Self, PrinterError> {
// TODO: implement auto position reporting.
// For this the whole reply-response control flow won't really work anymore, since the
// replies will just be interlaced with position reports.
let mut port = tokio_serial::new(port_path, 115200)
.open_native_async()
.expect("Unable to open serial port");