Commit 3722d33
小慧
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 #20611 parent 5d5cc16 commit 3722d33
1 file changed
Lines changed: 1 addition & 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 | | |
| |||
0 commit comments