Skip to content

Fix: a trial reports itself running or rolled back only once a USB function has reconnected - #2486

Merged
repeat98 merged 1 commit into
mainfrom
fix/trial-waits-usb-function
Nov 30, 2026
Merged

repeat98 merged 1 commit into
mainfrom
fix/trial-waits-usb-function

Conversation

@repeat98

Copy link
Copy Markdown
Owner

Fix: a module trial reports itself running, or rolled back, only once the Octatrack is back on USB. Ready for review.

  • What works: a USB Audio trial takes the unit off USB about a second after it starts and after it ends. device.mjs's trial() now waits (at most 40 s) until the base's USB function (vendor request 41) has settled, prints "USB function settled after N s", and the serve gives a try or remove those 40 s too. With it, the test procedure ran USB Audio 0.4.3's soak and price on the unit (30 November 2026, USB Audio 0.4.3-experimental: recording costs less CPU, and almost nothing at rest #2462).
  • What's broken or open: nothing known. A base without USB functions answers request 41 at once, so other modules' trials don't wait.
  • Musically: nothing changes for players; module tests on the Octatrack stop failing on USB Audio's reconnect.
  • Who must act: a maintainer: review and merge.
  • Ran on your unit: yes: applied uncommitted to the USB Audio 0.4.3 test procedure on the owner's MKII (development twin 5ac74d69 of base 0.8.5): the soak and the price passed, where without it the soak lost its link 0.9 s after the install.
  • Next step: merge.

The owner wrote this on 27 November 2026 (cbcd00b70 on fix/device-report-away) after #2306 had merged, so it never reached main; this lands it unchanged with a new changelog entry.

Tested on a unit: not a device-code change; the test tool ran on the owner's MKII as above.

What the guides lacked or got wrong: nothing; the fix was left behind on a merged branch.

🤖 Generated with Claude Code

…nction has reconnected

A USB Audio trial takes the unit off USB a second after it starts and after it ends. The procedure's soak started at
once and lost its link 0.8 s in, and the Part put-back after it found the unit away (0.4.2 on a development twin,
27 November 2026; again 0.4.3 on a 0.8.5 twin, 30 November 2026). trial() now waits, at most 40 s, until the base's
USB function (request 41) is settled on what the modules ask for; the serve gives a try or remove those 40 s too.
Written on 27 November (cbcd00b70) after #2306 had merged, so it never reached main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 30, 2026
@repeat98
repeat98 merged commit 0440222 into main Nov 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant