summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;