service print fix
This commit is contained in:
parent
a15c1ca68e
commit
01063a014c
5
BLEh.c
5
BLEh.c
@ -280,7 +280,8 @@ void print_char(struct ble_gatt_chr_def chr){
|
|||||||
void print_service(struct ble_gatt_svc_def* svcs){
|
void print_service(struct ble_gatt_svc_def* svcs){
|
||||||
int svc_id = 0;
|
int svc_id = 0;
|
||||||
struct ble_gatt_svc_def svc = svcs[svc_id];
|
struct ble_gatt_svc_def svc = svcs[svc_id];
|
||||||
for(svc_id = 0; svc.uuid != NULL; svc_id++){
|
for(svc_id = 0; svcs[svc_id].uuid != NULL; svc_id++){
|
||||||
|
svc = svcs[svc_id];
|
||||||
ESP_LOGI(TAG, "svc %d", svc_id);
|
ESP_LOGI(TAG, "svc %d", svc_id);
|
||||||
struct ble_gatt_chr_def chr = svc.characteristics[0];
|
struct ble_gatt_chr_def chr = svc.characteristics[0];
|
||||||
int ind = 0;
|
int ind = 0;
|
||||||
@ -291,8 +292,6 @@ void print_service(struct ble_gatt_svc_def* svcs){
|
|||||||
ind++;
|
ind++;
|
||||||
chr = svc.characteristics[ind];
|
chr = svc.characteristics[ind];
|
||||||
}
|
}
|
||||||
|
|
||||||
svc = svcs[svc_id];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user