Quote:
Originally Posted by BrianAtlanta
Also, be aware to check the limit switch before turning on a motor, not just when to turn it off.
|
This is why overriding the set() method as I did above is really the best object-oriented way to do this. Every call to set() for that object will automatically include the limit switch check. Write it once, test it, then forget about it.