Fix a bug in limits command, work on example and Arduino code