Fix macro download transfer type#188
Conversation
WalkthroughThe changes update the transferType value from 3 to 1022 (represented as 0x03fe in hexadecimal) in both the download macro implementation and its corresponding test fixture, ensuring consistency between the source code and test data. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This is publishing now as v3.8.1 |
About the Contributor
In this case, the PR is on behalf of myself ;)
Type of Contribution
This is a:
Bug fix
Current Behavior
I ran into the same issue as described in #180. The macro downloads were not working and resulting in "Invalid download".
New Behavior
I investigated the differences with LibAtem, and found that the data transfer type is set incorrectly. In LibAtem the parameter is called "Unknown": https://github.com/LibAtem/LibAtem/blob/dc679b113b1c7be436a88e277ffc7e2f0b80d992/LibAtem/Net/DataTransfer/DownloadMacroJob.cs#L51C27-L51C33
I tested if
Unknown2is also needed, but I didn't see any difference in the results, so I'm assuming no.Testing Instructions
Other Information
Status
Fix macro download transfer type
This PR fixes failed macro downloads that were resulting in "Invalid download" errors. The fix involves correcting the data transfer type used when initiating macro downloads to match the value used by LibAtem.
Changes made
transferTypefield in theDataTransferDownloadRequestCommandinitialization from3to0x03fe(1022 in decimal)1022Testing
The PR includes a usage example demonstrating the fix:
Note: Review checklist items remain unchecked (PR readiness, author testing, unit tests, documentation updates).