Fix bug with edge setting (appears when CKPS input is used for synchronization of Hall sensor)