diff options
author | David Lamparter <equinox@diac24.net> | 2012-09-19 19:35:40 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-09-19 19:35:40 +0200 |
commit | 354e4cc46c19751b932f534e74e87988143c2b14 (patch) | |
tree | 1aed06be4dfcedad2b7a27c660f72b97327a7132 | |
parent | 459e4d4f9b264ac2135c59a4156196f362a81db1 (diff) |
dali: avoid RX start bit glitches
-rw-r--r-- | dali2.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -112,6 +112,11 @@ ISR(TIMER0_COMPA_vect) case DALI_RX_SBIT: if (!hist_majority_0()) { + if (history == 0xf8) { + subsamp = 7; + return; + } + dalistat.falsestart++; dali_state = rx_prevstate_errs; return; |