From: David Schleef Date: Wed, 27 Jun 2001 22:15:31 +0000 (+0000) Subject: Fix bug about the return value of comedi_get_range() X-Git-Tag: r0_7_16~57 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=063c78f71046e2923711f33ae3db90d4249eb9d8;p=comedilib.git Fix bug about the return value of comedi_get_range() --- diff --git a/doc/tutorial b/doc/tutorial index b468e36..503582f 100644 --- a/doc/tutorial +++ b/doc/tutorial @@ -272,13 +272,11 @@ The comedi_range structure looks like unsigned int unit; }comedi_range; -As you might expect, ptr[range] is for range 'range', -which you provided to comedi_data_read() above. 'min' represents -the voltage corresponding to comedi_data_read() returning 0, -and 'max' represents comedi_data_read() returning 'maxdata', -(i.e., 4095 for 12 bit A/C converters, 65535 for 16 bit, -or, 1 for digital input -- more on this in a bit.) The -'unit' entry tells you if min and +The element 'min' represents the voltage corresponding to +comedi_data_read() returning 0, and 'max' represents +comedi_data_read() returning 'maxdata', (i.e., 4095 for 12 +bit A/C converters, 65535 for 16 bit, or, 1 for digital input +-- more on this in a bit.) The 'unit' entry tells you if min and max refer to voltage, current, etc. "Could it get easier?", you say. Well, yes. Use