Some fixes for hardware peripheral (endurance racing)