Unify frame metadata setting (addrs and owning_device)

This commit is contained in:
Allen Hill
2026-07-16 13:35:25 -07:00
parent 568c2af9e6
commit 200a225add
5 changed files with 84 additions and 50 deletions
+4 -8
View File
@@ -97,14 +97,10 @@ int main() {
}
}
peripheral.poll_devices([&](auto &dev) {
if (auto status = cache.pop()) {
dev.emit(status.get(), peripheral.controller());
outgoing.push(std::move(status));
return true;
}
return false;
});
if (peripheral.pending()) {
if (auto out = cache.pop(); out && peripheral.emit(out.get()))
outgoing.push(std::move(out));
}
if (auto out = outgoing.pop()) {
auto err = peripheral.send(