Actually await the read call

This commit is contained in:
Joshua Salzedo 2021-04-01 17:06:31 -07:00
parent d80e2eb006
commit 25e8368290
No known key found for this signature in database
GPG Key ID: C3D0EB484493B731

View File

@ -76,5 +76,5 @@ async fn main(spawner: Spawner) {
buf[5] = 0x01;
serial.as_mut().write(buf).await.unwrap();
serial.as_mut().read_until_idle(buf);
serial.as_mut().read_until_idle(buf).await.unwrap();
}