Matt,
Didn't you read a little too quickly?
The result of 'if (error == error)' is always true, so it doesn't say anything about errors.
Regards Rob.



On 03/18/10 01:34 pm, mattschinkel wrote:
It is quite useful because there could be an interrupt on the slave at
time of transmission that could mess up data. This is for error
checking as stated.

Matt.

On Mar 18, 4:39 am, Rob Hamerling<[email protected]>  wrote:
Matt,

I was peeking in servo library servo_rc_master_dedicated.jal and noticed
the following statements (line 66)

          -- do some error checking on recieved data
          if (error == error)&  (error2 == !error3)&  (error3 == error4) then

The first of the 3 comparisons is not very useful.



--
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to