fixup dev refs

This commit is contained in:
Allen Hill
2026-07-06 11:29:49 -07:00
parent 1fdd296784
commit 6e4812e6b8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ private:
dev.resolvepending();
}
template <Device Dev>
void device_preroute(Dev dev, const Frame *in, Frame *out) {
void device_preroute(Dev &dev, const Frame *in, Frame *out) {
out->owning_device = Dev::id;
dev.handle(in, out);
}
+1 -1
View File
@@ -99,7 +99,7 @@ int main() {
}
}
peripheral.poll_devices([&](auto dev) {
peripheral.poll_devices([&](auto &dev) {
if (auto status = cache.pop()) {
dev.emit(status.get());
outgoing.push(std::move(status));