Fix cancelling button pin when analog pin configured