Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 809fc200 authored by Jeremy Wu's avatar Jeremy Wu Committed by Gerrit Code Review
Browse files

Merge "Floss: log error on enable_offload only when it is an error"

parents e19ee7cb 215c5fe0
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -328,8 +328,9 @@ bool get_offload_enabled() { return offload_supported && offload_enabled; }


// Set offload enable/disable
// Set offload enable/disable
bool enable_offload(bool enable) {
bool enable_offload(bool enable) {
  if (!offload_supported) {
  if (!offload_supported && enable) {
    LOG_ERROR("%s: Hardware does not support SCO-offload.", __func__);
    LOG_ERROR("%s: Cannot enable SCO-offload since it is not supported.",
              __func__);
    return false;
    return false;
  }
  }
  offload_enabled = enable;
  offload_enabled = enable;