Commit 305a4b2
fix: recalibrate noise detection to not drop legitimate Somfy frames
The previous threshold (>100 edges in 10 seconds) tripped on the very first
button press — a single Somfy RTS press emits 500-900 edges in under a
second. Worse, the cooldown was measured from the start of the count window,
so the ISR re-enabled on the next loop iteration, missing only the frame
repetitions in flight.
New thresholds: >1000 edges in any 50ms window (~13x peak legitimate rate
for SYMBOL=640µs), with a 2s cooldown measured from the moment the ISR was
disabled. Tooltip and header comment updated to match.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent da0d93a commit 305a4b2
3 files changed
Lines changed: 21 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
953 | | - | |
| 952 | + | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | | - | |
52 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
4198 | 4205 | | |
4199 | 4206 | | |
4200 | 4207 | | |
4201 | | - | |
4202 | | - | |
4203 | | - | |
4204 | | - | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
4205 | 4211 | | |
4206 | | - | |
4207 | | - | |
| 4212 | + | |
| 4213 | + | |
4208 | 4214 | | |
| 4215 | + | |
4209 | 4216 | | |
4210 | 4217 | | |
4211 | 4218 | | |
| |||
4885 | 4892 | | |
4886 | 4893 | | |
4887 | 4894 | | |
4888 | | - | |
| 4895 | + | |
4889 | 4896 | | |
4890 | 4897 | | |
4891 | | - | |
4892 | | - | |
| 4898 | + | |
| 4899 | + | |
4893 | 4900 | | |
4894 | 4901 | | |
4895 | 4902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
0 commit comments