Skip to content

v0.4.10

Choose a tag to compare

@mcdax mcdax released this 10 May 09:11
· 12 commits to main since this release

Fixed

  • WiLink: surface unilateral disconnects. WiLinkController now hooks ph4_walkingpad's BleakClient disconnect callback, so a unilateral BLE drop (range loss, firmware reboot, phone-app stealing the link) propagates to upper layers. The connected property also consults the live client state. Without this, _disconnect_callbacks were never fired on legacy devices and _connected stayed True forever after a real drop.
  • WalkingPadController.disconnect(): don't skip teardown on stale cache. Previously gated the entire disconnect on the cached _connected bool; now also checks backend liveness so a real Bleak client can still be closed when the firmware unilaterally dropped the link (which flipped our cache to False before disconnect could run).
  • set_speed docstring trimmed of stale "the user will need to set the desired speed once the belt is running" comment — the code already issues set_target_speed after start().

Docs

  • README clarifies that the vendor pre-amble is sent for any device exposing the d18d2c10-… characteristic (not MC-21-specific).