mbv: i really though async would work this time

There's still a glitch/race somewhere.
This commit is contained in:
2025-06-29 13:56:58 -07:00
parent 724f8db1b1
commit f0f26af791
6 changed files with 121 additions and 109 deletions

View File

@@ -7,7 +7,7 @@
#include "buffer.h"
async::task<buffer> UartRead(int size);
async::task<uint8_t> UartReadLoop();
async::task<std::byte> UartReadLoop();
async::task<> UartWrite(std::span<const std::byte> data);
inline async::task<> UartWrite(std::string_view s) {
co_await UartWrite(std::as_bytes(std::span{s.data(), s.size()}));