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:
Jiang Jiang Jian 2020-11-22 18:56:57 +08:00
commit e0c22867b9

View File

@ -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;