From 76f5da0125cc815fb0eb6cf84b9be7856e2da94a Mon Sep 17 00:00:00 2001 From: Allen Hill Date: Sat, 1 Aug 2026 13:14:38 -0700 Subject: [PATCH] Restore dynamic from device in function change resp --- src/avclan/cdchanger.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/avclan/cdchanger.cc b/src/avclan/cdchanger.cc index 2c296b0..6ce355e 100644 --- a/src/avclan/cdchanger.cc +++ b/src/avclan/cdchanger.cc @@ -67,7 +67,7 @@ void CDChanger::handle(const Frame &in, Frame &out) { const auto action = static_cast(*data++); static const uint8_t function_change_resp[] = { - 0x00, to_underlying(Device::CD_CHANGER), to_underlying(from), 0xFF, 0x01}; + 0x00, to_underlying(Device::CD_CHANGER), 0xFF, 0xFF, 0x01}; using enum Action; #pragma GCC diagnostic push @@ -78,6 +78,7 @@ void CDChanger::handle(const Frame &in, Frame &out) { out.is_unicast = true; out.length = sizeof(function_change_resp); memcpy(out.data, function_change_resp, sizeof(function_change_resp)); + out.data[2] = to_underlying(from); out.data[3] = to_underlying(Enable_Function_Resp); state = 0; flags2 = 0x80;