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

Commit 454f1d7e authored by Steven Liu's avatar Steven Liu
Browse files

fix the condition check

Flag: com.android.bluetooth.flags.channel_sounding_25q2_apis
Bug: 367409858
Bug: 378942784
Test: m com.android.btservices
Change-Id: I93000f51b0071896aca4988e542d3aa02f17c00c
parent 063e04c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ struct DistanceMeasurementManager::impl : bluetooth::hal::RangingHalCallback {
  void start_distance_measurement_with_cs(const Address& cs_remote_address,
                                          uint16_t connection_handle) {
    log::info("connection_handle: {}, address: {}", connection_handle, cs_remote_address);
    if (!com::android::bluetooth::flags::channel_sounding_in_stack() && !is_local_cs_ready_) {
    if (!com::android::bluetooth::flags::channel_sounding_in_stack() || !is_local_cs_ready_) {
      log::error("Channel Sounding is not enabled");
      distance_measurement_callbacks_->OnDistanceMeasurementStopped(
              cs_remote_address, REASON_INTERNAL_ERROR, METHOD_CS);