fix(nimble): Fix for clang compilation issues

This commit is contained in:
Rahul Tank
2026-06-05 10:55:27 +05:30
parent 0364adce59
commit 010b3a37b2
21 changed files with 113 additions and 228 deletions
@@ -4,7 +4,21 @@
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include <stdio.h>
#include <string.h>
#include "host/ble_hs.h"
#include "esp_central.h"
int
peer_addr_parse(const char *addr_str, uint8_t addr[PEER_ADDR_VAL_SIZE])
{
if (addr_str == NULL) {
return 0;
}
return sscanf(addr_str, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
&addr[5], &addr[4], &addr[3],
&addr[2], &addr[1], &addr[0]);
}
/**
* Utility function to log an array of bytes.