Skip to content

Add per-device label configs and improve BLE flow control#10

Merged
tomLadder merged 1 commit intomainfrom
feat/device-label-config-and-flow-control
Apr 6, 2026
Merged

Add per-device label configs and improve BLE flow control#10
tomLadder merged 1 commit intomainfrom
feat/device-label-config-and-flow-control

Conversation

@tomLadder
Copy link
Copy Markdown
Owner

Summary

  • Define LabelSizePreset and DeviceLabelConfig types so each printer model (P12, P15) declares its supported label sizes and paper types
  • Move the label size selector from the editor toolbar into the print settings panel, populated dynamically from the connected device's config
  • Auto-detect the printer model on BLE connect and apply its default paper type and label size
  • Tune BLE flow control: shorter starvation timeout for timer-style pacing, MTU-based packet size adjustment, and a fixed 5s hard timeout

- Add LabelSizePreset and DeviceLabelConfig types to define supported
  label sizes and paper types per printer model (P12, P15)
- Move label size selector from toolbar into print settings panel,
  driven by the connected printer's label config
- Auto-detect printer model on BLE connect and apply default settings
- Tune flow control: use timer-based pacing with short starvation
  timeout, add MTU-based packet size adjustment, and a fixed 5s hard
  timeout
- Export new types (DeviceLabelConfig, LabelSizePreset) from core
@tomLadder tomLadder merged commit 790f32d into main Apr 6, 2026
2 checks passed
@tomLadder tomLadder deleted the feat/device-label-config-and-flow-control branch April 6, 2026 14:02
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