Skip to content

Commit 0864902

Browse files
committed
fix(nimble): Corrected structure field name usage in examples
1 parent 4ea1fac commit 0864902

File tree

8 files changed

+15
-15
lines changed
  • examples/bluetooth/nimble
    • ble_cts/cts_cent/main
    • ble_enc_adv_data/enc_adv_data_cent/main
    • ble_htp/htp_cent/main
    • ble_l2cap_coc/coc_blecent/main
    • ble_periodic_sync/main
    • ble_phy/phy_cent/main
    • ble_proximity_sensor/proximity_sensor_cent/main
    • blecent/main

8 files changed

+15
-15
lines changed

examples/bluetooth/nimble/ble_cts/cts_cent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,9 @@ ble_cts_cent_gap_event(struct ble_gap_event *event, void *arg)
505505
#if CONFIG_EXAMPLE_EXTENDED_ADV
506506
case BLE_GAP_EVENT_EXT_DISC:
507507
/* An advertisement report was received during GAP discovery. */
508-
ext_print_adv_report(&event->disc);
508+
ext_print_adv_report(&event->ext_disc);
509509

510-
ble_cts_cent_connect_if_interesting(&event->disc);
510+
ble_cts_cent_connect_if_interesting(&event->ext_disc);
511511
return 0;
512512
#endif
513513

examples/bluetooth/nimble/ble_enc_adv_data/enc_adv_data_cent/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ enc_adv_data_cent_gap_event(struct ble_gap_event *event, void *arg)
544544
#if MYNEWT_VAL(BLE_EXT_ADV)
545545
case BLE_GAP_EVENT_EXT_DISC:
546546
/* An advertisement report was received during GAP discovery. */
547-
ext_print_adv_report(&event->disc);
547+
ext_print_adv_report(&event->ext_disc);
548548
return 0;
549549
#endif
550550

examples/bluetooth/nimble/ble_htp/htp_cent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ ble_htp_cent_gap_event(struct ble_gap_event *event, void *arg)
635635
#if CONFIG_EXAMPLE_EXTENDED_ADV
636636
case BLE_GAP_EVENT_EXT_DISC:
637637
/* An advertisement report was received during GAP discovery. */
638-
ext_print_adv_report(&event->disc);
638+
ext_print_adv_report(&event->ext_disc);
639639

640-
ble_htp_cent_connect_if_interesting(&event->disc);
640+
ble_htp_cent_connect_if_interesting(&event->ext_disc);
641641
return 0;
642642
#endif
643643

examples/bluetooth/nimble/ble_l2cap_coc/coc_blecent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ blecent_gap_event(struct ble_gap_event *event, void *arg)
492492
#if CONFIG_EXAMPLE_EXTENDED_ADV
493493
case BLE_GAP_EVENT_EXT_DISC:
494494
/* An advertisement report was received during GAP discovery. */
495-
ext_print_adv_report(&event->disc);
495+
ext_print_adv_report(&event->ext_disc);
496496

497-
blecent_connect_if_interesting(&event->disc);
497+
blecent_connect_if_interesting(&event->ext_disc);
498498
return 0;
499499
#endif
500500

examples/bluetooth/nimble/ble_periodic_sync/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ periodic_sync_gap_event(struct ble_gap_event *event, void *arg)
110110
switch (event->type) {
111111
#if CONFIG_EXAMPLE_EXTENDED_ADV
112112
case BLE_GAP_EVENT_EXT_DISC:
113-
/* An advertisment report was received during GAP discovery. */
114-
struct ble_gap_ext_disc_desc *disc = ((struct ble_gap_ext_disc_desc *)(&event->disc));
113+
/* An advertisement report was received during GAP discovery. */
114+
struct ble_gap_ext_disc_desc *disc = ((struct ble_gap_ext_disc_desc *)(&event->ext_disc));
115115
if (disc->sid == 2 && synced == 0) {
116116
synced++;
117117
const ble_addr_t addr;

examples/bluetooth/nimble/ble_phy/phy_cent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ blecent_gap_event(struct ble_gap_event *event, void *arg)
450450

451451
case BLE_GAP_EVENT_EXT_DISC:
452452
/* An advertisement report was received during GAP discovery. */
453-
ext_print_adv_report(&event->disc);
453+
ext_print_adv_report(&event->ext_disc);
454454

455-
blecent_connect_if_interesting(&event->disc);
455+
blecent_connect_if_interesting(&event->ext_disc);
456456
return 0;
457457

458458
default:

examples/bluetooth/nimble/ble_proximity_sensor/proximity_sensor_cent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ ble_prox_cent_gap_event(struct ble_gap_event *event, void *arg)
583583
#if CONFIG_EXAMPLE_EXTENDED_ADV
584584
case BLE_GAP_EVENT_EXT_DISC:
585585
/* An advertisement report was received during GAP discovery. */
586-
ext_print_adv_report(&event->disc);
586+
ext_print_adv_report(&event->ext_disc);
587587

588-
ble_prox_cent_connect_if_interesting(&event->disc);
588+
ble_prox_cent_connect_if_interesting(&event->ext_disc);
589589
return 0;
590590
#endif
591591

examples/bluetooth/nimble/blecent/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,9 @@ blecent_gap_event(struct ble_gap_event *event, void *arg)
883883
#if CONFIG_EXAMPLE_EXTENDED_ADV
884884
case BLE_GAP_EVENT_EXT_DISC:
885885
/* An advertisement report was received during GAP discovery. */
886-
ext_print_adv_report(&event->disc);
886+
ext_print_adv_report(&event->ext_disc);
887887

888-
blecent_connect_if_interesting(&event->disc);
888+
blecent_connect_if_interesting(&event->ext_disc);
889889
return 0;
890890
#endif
891891

0 commit comments

Comments
 (0)