|
From: | Larry Barello |
Subject: | Re: [avr-gcc-list] Extremly confusing behaviour... (more detailedexplanation of error, believe me its not a volatile thing) |
Date: | Wed, 14 May 2003 10:13:16 -0700 |
Well, clearly srf08_read() is NOT returning 2 when reading the data! It is returning a series of bytes of which only ONE is the true return value. Casting the return value to an byte clips off the higher bytes (which are bogus anyway, right?)
[Prev in Thread] | Current Thread | [Next in Thread] |