|
Re: Interface with breaker
Quote:
|
Originally Posted by doyler
Is it in the DDT version? What does it look like if it is because I can't really tell anything that might be it
|
oops, my fault of course.
The breaker code is in Process_Data_From_Master_uP() of both the 2.2 and 2.4 versions of the default code.
Code:
/* Example code to check if a breaker was ever tripped. */
if (aBreakerWasTripped)
{
for (i=1;i<29;i++)
{
if (Breaker_Tripped(i))
User_Byte1 = i;
/* Update the last breaker tripped on User_Byte1 (to demonstrate the use of a user byte) Normally, you do something else if a breaker got tripped (ex: limit a PWM output) */
}
}
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 05-02-2005 at 17:01.
|