mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-06 17:03:17 +00:00
fixup dev refs
This commit is contained in:
@@ -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
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user