- From: Bernd Porr <BerndPorr_at_f2s.com>
- Date: Sun, 27 Feb 2005 09:20:05 +0000
Dear all,
does it make harm if we change the "data==0" into "data>=0" in
comedi_to_phys?
The reason is that I use bit #12 to signal an out-of-range with a 12 bit
A/D converter. Bits 0 to 11 carry the data. 0..4095 is the "normal"
range and values from 4096 to 8191 signal out of range.
from:
if(comedi_oor_is_nan==COMEDI_OOR_NAN && (data==0 || data==maxdata))
return NAN;
to:
if(comedi_oor_is_nan==COMEDI_OOR_NAN && (data==0 || data>=maxdata))
return NAN;
/Bernd
--
www: http://www.berndporr.me.uk/
http://www.linux-usb-daq.co.uk/
Mobile: +44 (0)7840 340069
Work: +44 (0)141 330 5237
University of Glasgow
Department of Electronics & Electrical Engineering
Room 519, Rankine Building, Oakfield Avenue,
Glasgow, G12 8LT
Received on 2005-02-27Z09:20:05