to pumSetRange() happens. ANDing with 0x3FF was wrong anyway as the PWM counter does from zero to the top value, not top-1 as I originally thought.
Updated wiringPi to add new PWM controls.
in pinMode ()
General tidying up of some of the code round delayMicroseconds