[ update ] clean rotary switch code