make argument to get_pin_status int instead of enum to prevent invalid optimization