Skip to content

Fix print reliability and add debug logging#11

Merged
tomLadder merged 1 commit intomainfrom
fix/print-reliability-and-debug-logging
Apr 6, 2026
Merged

Fix print reliability and add debug logging#11
tomLadder merged 1 commit intomainfrom
fix/print-reliability-and-debug-logging

Conversation

@tomLadder
Copy link
Copy Markdown
Owner

Summary

  • Deselect on print: Clear element selection before exporting the canvas so resize handles and selection boxes don't appear on printed labels
  • Fix disconnect detection: Implement onDisconnect in WebBluetoothConnection so printer power-off resolves as implicit success instead of a 30s timeout
  • Fix CX success handling: Forward success responses arriving on the CX characteristic to pending waiters
  • Fix flow control: Reset credits before each print to clear stale accumulation; disable starvation recovery when the printer actively grants credits via CX to prevent force-sending into a full buffer
  • Debug logging: Add in-memory debug log with BLE/PRINT/TX/RX/CX/FC tags and a UI panel with downloadable .txt export for remote troubleshooting

- Deselect editor elements before print export to avoid rendering
  selection handles on the label
- Implement onDisconnect in WebBluetoothConnection so printer power-off
  resolves as implicit success instead of timing out
- Forward success responses arriving on CX characteristic to pending
  waiters
- Reset flow controller credits before each print to clear stale credits
  from previous jobs
- Disable starvation recovery when the printer actively grants credits
  via CX, preventing force-sends into a full buffer
- Add in-memory debug log (BLE, PRINT, TX, RX, CX, FC tags) with
  downloadable .txt export in the UI
@tomLadder tomLadder merged commit 1ff8d39 into main Apr 6, 2026
2 checks passed
@tomLadder tomLadder deleted the fix/print-reliability-and-debug-logging branch April 6, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant