From commits-return-15958-archive-asf-public=cust-asf.ponee.io@mynewt.apache.org Mon Feb 5 15:50:43 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 53DD3180647 for ; Mon, 5 Feb 2018 15:50:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 442AF160C5A; Mon, 5 Feb 2018 14:50:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B28A8160C46 for ; Mon, 5 Feb 2018 15:50:42 +0100 (CET) Received: (qmail 98699 invoked by uid 500); 5 Feb 2018 14:50:41 -0000 Mailing-List: contact commits-help@mynewt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mynewt.apache.org Delivered-To: mailing list commits@mynewt.apache.org Received: (qmail 98690 invoked by uid 99); 5 Feb 2018 14:50:41 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2018 14:50:41 +0000 From: GitBox To: commits@mynewt.apache.org Subject: [GitHub] rymanluk closed pull request #767: nimble/ll_dtm: Couple of fixes for DTM code Message-ID: <151784224135.5119.5737178202527005410.gitbox@gitbox.apache.org> rymanluk closed pull request #767: nimble/ll_dtm: Couple of fixes for DTM code URL: https://github.com/apache/mynewt-core/pull/767 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/net/nimble/controller/src/ble_ll_dtm.c b/net/nimble/controller/src/ble_ll_dtm.c index 487b4e90e..a3884669b 100644 --- a/net/nimble/controller/src/ble_ll_dtm.c +++ b/net/nimble/controller/src/ble_ll_dtm.c @@ -314,6 +314,12 @@ ble_ll_dtm_rx_start(void) ble_ll_state_set(BLE_LL_STATE_DTM); +#ifdef BLE_XCVR_RFCLK + if (ble_ll_xcvr_rfclk_state() == BLE_RFCLK_STATE_OFF) { + ble_ll_xcvr_rfclk_start_now(os_cputime_get32()); + } +#endif + return 0; } diff --git a/net/nimble/controller/src/ble_ll_sched.c b/net/nimble/controller/src/ble_ll_sched.c index 9530d906b..8b44025f1 100644 --- a/net/nimble/controller/src/ble_ll_sched.c +++ b/net/nimble/controller/src/ble_ll_sched.c @@ -1480,7 +1480,7 @@ int ble_ll_sched_dtm(struct ble_ll_sched_item *sch) sch = TAILQ_FIRST(&g_ble_ll_sched_q); #ifdef BLE_XCVR_RFCLK - ble_ll_xcvr_rfclk_timer_start(sch->start_time); + ble_ll_xcvr_rfclk_timer_start(sch->start_time); #endif OS_EXIT_CRITICAL(sr); ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services