Automatically sets the controller to digital mode (+major rework)