Skip to content

Commit c0d3a17

Browse files
Deomid Ryabkovcesantabot
authored andcommitted
Restore FFI-ability of struct mg_str
mgos_dlsym needs to include mg_str for ffi_exports to be able to use it PUBLISHED_FROM=a2dd167c8e8f9e9b7316a856f19a4603080c3632
1 parent cd685b6 commit c0d3a17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mgos_bt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
* limitations under the License.
1616
*/
1717

18+
#include <stdio.h>
19+
#include <string.h>
20+
1821
#include "mgos_bt.h"
1922
#include "mgos_bt_gattc.h"
2023
#include "mgos_system.h"
2124

22-
#include <stdio.h>
23-
2425
const char *mgos_bt_addr_to_str(const struct mgos_bt_addr *addr, char *out) {
2526
sprintf(out, "%02x:%02x:%02x:%02x:%02x:%02x", addr->addr[0], addr->addr[1],
2627
addr->addr[2], addr->addr[3], addr->addr[4], addr->addr[5]);

0 commit comments

Comments
 (0)