| ... {NUM|FLO, "Light", 1.0, 0., 1., "Value for active segments"}, {NUM|FLO, "Dark", 0.0, 0., 1., "Value for inactive segments"}, {NUM|INT, "Value", 8888, 0, 99999999., "Value to display"}, {NUM|INT, "Target", 8888, 0, 99999999., "Maximaume Valioue to display"}, {NUM|INT, "LZeros", 8.0, 0., 8., "Display leading zeros"}, ... }; |
| ... float dark; int value; int target; int zeros; int m_12_24; ... |
| ...
if (stype==COUNTER) { val+=delta; /* si on depasse target, on se replace dessus */ if(val>cast->target)val=cast->target; } else { int h,m,s; ..... |