Bläddra i källkod

[BLE]fix the readme and fix ble bug in MDK (#16)

* sync master  PR #1189

https://github.com/apache/mynewt-nimble/pull/1189
supperthomas 3 år sedan
förälder
incheckning
8bb96bf33d
2 ändrade filer med 9 tillägg och 1 borttagningar
  1. 8 0
      README.md
  2. 1 1
      nimble/host/src/ble_hs_startup.c

+ 8 - 0
README.md

@@ -1,3 +1,11 @@
+<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RT-THREAD NIMBLE</h1>
+<h4 align="center">nimble BLE STACK for RT-THREAD</h4>
+<p align="center">
+	<a href="https://github.com/RT-Thread-packages/nimble/stargazers"><img src="https://img.shields.io/github/stars/RT-Thread-packages/nimble?style=flat-square&logo=GitHub"></a>
+	<a href="https://github.com/RT-Thread-packages/nimble/network/members"><img src="https://img.shields.io/github/forks/RT-Thread-packages/nimble?style=flat-square&logo=GitHub"></a>
+	<a href="https://github.com/RT-Thread-packages/nimble/watchers"><img src="https://img.shields.io/github/watchers/RT-Thread-packages/nimble?style=flat-square&logo=GitHub"></a>
+	<a href="https://github.com/RT-Thread-packages/nimble/issues"><img src="https://img.shields.io/github/issues/RT-Thread-packages/nimble.svg?style=flat-square&logo=GitHub"></a>
+</p>
 # 1 介绍
 
 NimBLE 软件包是 RT-Thread 基于 [Apache NimBLE](https://github.com/apache/mynewt-nimble) 开源蓝牙 5.0 协议栈的移植实现,该协议栈提供完整的 Host 层和 Controller 层支持,目前支持 Nordic nRF51 和 nRF52 系列芯片。

+ 1 - 1
nimble/host/src/ble_hs_startup.c

@@ -40,7 +40,7 @@ ble_hs_startup_read_sup_f_tx(void)
     /* for now we don't use it outside of init sequence so check this here
      * LE Supported (Controller) byte 4, bit 6
      */
-    if (!(rsp.features & 0x0000006000000000)) {
+    if (!(le64toh(rsp.features) & 0x0000006000000000)) {
         BLE_HS_LOG(ERROR, "Controller doesn't support LE\n");
         return BLE_HS_ECONTROLLER;
     }