mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ble_mesh_sensor_example_fix_v4.0' into 'release/v4.0'
ble_mesh: example: Fix sensor data wrong iteration (v4.0) See merge request espressif/esp-idf!10275
This commit is contained in:
commit
e0c22867b9
@ -563,10 +563,11 @@ static void example_ble_mesh_sensor_client_cb(esp_ble_mesh_sensor_client_cb_even
|
||||
if (data_len != ESP_BLE_MESH_SENSOR_DATA_ZERO_LEN) {
|
||||
ESP_LOG_BUFFER_HEX("Sensor Data", data + mpid_len, data_len + 1);
|
||||
length += mpid_len + data_len + 1;
|
||||
data += mpid_len + data_len + 1;
|
||||
} else {
|
||||
length += mpid_len;
|
||||
data += mpid_len;
|
||||
}
|
||||
data += length;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user