summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2012-09-19 19:35:40 +0200
committerDavid Lamparter <equinox@diac24.net>2012-09-19 19:35:40 +0200
commit354e4cc46c19751b932f534e74e87988143c2b14 (patch)
tree1aed06be4dfcedad2b7a27c660f72b97327a7132
parent459e4d4f9b264ac2135c59a4156196f362a81db1 (diff)
dali: avoid RX start bit glitches
-rw-r--r--dali2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dali2.c b/dali2.c
index 1823c97..92e0ea5 100644
--- a/dali2.c
+++ b/dali2.c
@@ -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;