fix(#395): correct BLE writable floor in effectiveMaxFrameSize (Gemini review)
Gemini adversarial review flagged the getter's clamp: the floor used the ATT_MTU minimum (23) where it should use the writable minimum (20 = 23-3), overstating the cap by 3 for tiny MTUs; and an unknown MTU defaulted to maxFrameSize (172), the wrong direction for a safety cap. Floor at 20 and default an unknown MTU conservatively. No behaviour change on radios that grant MTU >= 175 (they hit the maxFrameSize short-circuit). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>fix/395-dm-channel-send-wedge
parent
3463c1fb57
commit
3f7ddfebf9
Loading…
Reference in new issue