pause = map (val,0,9, 15, 100); // hence maximum of 9
You had (always had)two variables called "pause".
Check scope rules.
pause = map (val,0,9, 15, 100); // hence maximum of 9
You had (always had)two variables called "pause".
Check scope rules.