Skip to content

Fix P15 clone printing and match official app flow control#14

Merged
tomLadder merged 1 commit intomainfrom
fix/p15-clone-packet-size-and-flow-control
Apr 7, 2026
Merged

Fix P15 clone printing and match official app flow control#14
tomLadder merged 1 commit intomainfrom
fix/p15-clone-packet-size-and-flow-control

Conversation

@tomLadder
Copy link
Copy Markdown
Owner

Summary

  • Fix P15 clone crash by capping packet size to 95 bytes and improving flow control
  • Add debug logging system for BLE traffic, flow control, and print jobs
  • Rewrite FlowController to match official Marklife app's timer-based sending: credits start at 0 (granted by printer via CX), one packet per 30ms tick, unconditional starvation recovery after 1s
  • Add 30ms inter-packet delay matching official app's timer cadence

Rewrite FlowController to mirror the decompiled APK's timer-based
sending: credits start at 0 (granted by printer via CX), one packet
per timer tick, unconditional starvation recovery after 1s, no
hardcoded initial credits or pre-print reset.
@tomLadder tomLadder merged commit 2dbc9ca into main Apr 7, 2026
2 checks passed
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