Commit b4f82ab
fix: only call _validate() when strict=True (#2062)
* fix: only call _validate() when strict=True
_validate() was called unconditionally, rejecting brp values > 64
even when strict=False. This is too restrictive for some peripherals
like FYSETC UCAN which support brp up to 1024.
Only call _validate() when strict=True, matching the behavior
of _restrict_to_minimum_range().
Fixes #2061
* add news fragment
---------
Co-authored-by: 小慧 <xiaohui@192.168.5.97>
Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com>1 parent 6b1f053 commit b4f82ab
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments