Un (tout petit) peu de tolérance dans l'accroche
This commit is contained in:
parent
edcf3af276
commit
4a183e0a8a
1 changed files with 4 additions and 5 deletions
|
|
@ -150,14 +150,13 @@ namespace DMX2
|
|||
{
|
||||
valeursrecues [data.id] = data.value;
|
||||
max = valeursrecues.Values.Max ();
|
||||
/*if (max != data.value)
|
||||
return true;*/
|
||||
|
||||
int val = seq.ValeurBruteCircuit (circuit);
|
||||
|
||||
if ((data.prev_value != val)
|
||||
&& ((data.prev_value < val && data.value < val) ||
|
||||
(data.prev_value > val && data.value > val))) {
|
||||
if (
|
||||
(data.prev_value < val-1 && data.value < val-1) ||
|
||||
(data.prev_value > val+1 && data.value > val+1)
|
||||
) {
|
||||
attache = false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue