mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-06 17:03:17 +00:00
Consistently mark frame owners
This commit is contained in:
@@ -339,6 +339,7 @@ bool CDChanger::pending() { return cdtimer_pending(); }
|
||||
void CDChanger::resolvepending() { cdtimer_clear(); }
|
||||
|
||||
void CDChanger::emit(Frame *out, uint16_t peripheral) {
|
||||
out->owning_device = id; // so react() routes r_StateReport back here
|
||||
out->peripheral_addr = peripheral;
|
||||
generateStatus(out, false, Device::STATUS);
|
||||
out->reaction = r_StateReport;
|
||||
|
||||
@@ -103,8 +103,11 @@ public:
|
||||
case PACK3(COMMUNICATION_V2, COMM_CTRL,
|
||||
to_underlying(Advertise_Function)):
|
||||
((Devs::id == static_cast<Device>(b3)
|
||||
? std::get<Devs>(devices_).enable(out),
|
||||
0 : 0),
|
||||
? [&] {
|
||||
out->owning_device = Devs::id;
|
||||
std::get<Devs>(devices_).enable(out);
|
||||
}()
|
||||
: void()),
|
||||
...);
|
||||
break;
|
||||
case PACK3(COMMUNICATION_V1, COMM_CTRL, to_underlying(Ping_Req)):
|
||||
|
||||
Reference in New Issue
Block a user