demo/inpn: correct ranges in range loop
demo/inpn: correct ranges in range loop

The demo is supposed to take one reading for each channel for each
range, but was using the range from the command line options instead.

Thanks to Daniele Mazzi for spotting the bug!

Linux-Comedi/comedilib,Linux-Comedi/comedilib,olsonse/comedilib,Linux-Comedi/comedilib,Linux-Comedi/comedilib,olsonse/comedilib,Linux-Comedi/comedilib,olsonse/comedilib,olsonse/comedilib,olsonse/comedilib,olsonse/comedilib,Linux-Comedi/comedilib