Compensation or avoidance of ambient pressure variation