Adaptation allows the mechanism controlling flagellar rotation to be reset.

Adaptation allows the mechanism controlling flagellar rotation to be reset. How is this achieved?