added limits for counter, now the dialing should work basically
adjusted debounce timer value to avoid missing ticks