Skip to main content

set_smartshift_sensitivity

Function set_smartshift_sensitivity 

Source
pub async fn set_smartshift_sensitivity(
    route: &DeviceRoute,
    value: NonZeroU8,
) -> Result<SmartShiftStatus, WriteError>
Expand description

Set the SmartShift auto-disengage sensitivity on route, preserving the current mode. Returns the read-back status after the write so the caller can display and verify it.

value is written verbatim: 0x01..=0xfe is the auto-disengage threshold (smaller = releases sooner / more sensitive) and 0xff is permanent ratchet. The NonZeroU8 parameter rules out 0 at the type level — the device treats a 0 threshold as “no change”, so it could never be a real write.

FeatureUnsupported when the device exposes neither HID++ 0x2111 (MX Master 3 / 3S) nor the older 0x2110 (MX Master 2S).