Comparing h2zero:master...stdstijn:master · h2zero/esp-nimble-cpp

Commits on Mar 12, 2026

  1. Use designated initializer for NimBLEScan::m_scanParams and guard dis…

    …able_observer_mode field for ESP-IDF >= 5.4.2
    
    The NimBLEScan constructor previously used positional struct initialization,
    which no longer matches the ble_gap_disc_params layout in newer ESP-IDF
    versions (>= 5.4.2) where the field `disable_observer_mode` was added.
    
    This is caused by -Wmissing-field-initializers.
    
    Switch to designated initializers to make the field assignments explicit
    and more robust across ESP-IDF/NimBLE revisions. The new field is only
    initialized when building against ESP-IDF 5.4.2 or later to maintain
    backwards compatibility.
    Configuration menu

    Browse the repository at this point in the history