overheat lock on RelayON. encoder reversed

added public MAX_INTERNAL constant