mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Implement support for fetching and displaying the machine's cumulative stitch statistics using the SERVICE_COUNT (0x0100) command. The SERVICE_COUNT command returns two uint32 values: - serviceCount: Cumulative service counter - totalCount: Total stitches sewn by the machine (lifetime) Changes: - Add serviceCount and totalCount fields to MachineInfo interface - Implement getServiceCount() method in BrotherPP1Service - Call getServiceCount() when fetching machine info on connect - Display "Total Stitches" in Machine Connection panel - Format stitch count with locale-specific thousand separators - Handle errors gracefully if SERVICE_COUNT command fails The total stitch count is now visible in the Machine Connection section, providing users with insight into their machine's lifetime usage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| machine.ts | ||