getSonarQuietMode method

bool getSonarQuietMode()

Implementation

bool getSonarQuietMode() {
  final pMode = calloc<Int32>();
  try {
    bindings.distanceSensorGetSonarQuietMode(_handle!, pMode);
    return pMode.value == 1;
  } catch (e) {
    throw PhidgetException('An error occurred getting the sonar quiet mode: $e');
  } finally {
    calloc.free(pMode);
  }
}