// but change to the neighbouring zone is governed by _slow,
// except to the darkest zone, where we want fast reaction.
new_zone = val_to_zone(slow_10bit);
// but change to the neighbouring zone is governed by _slow,
// except to the darkest zone, where we want fast reaction.
new_zone = val_to_zone(slow_10bit);
// are we entering the shadow?
if (!user_zone && new_zone < ambient_zone
&& ambient_zone >= 2 && slow_10bit > fast_10bit
// are we entering the shadow?
if (!user_zone && new_zone < ambient_zone
&& ambient_zone >= 2 && slow_10bit > fast_10bit
new_zone = ambient_zone; // don't change while entering shadow
ambient_zone_changed(); // notify others the first time
}
new_zone = ambient_zone; // don't change while entering shadow
ambient_zone_changed(); // notify others the first time
}