nanohub:drivers:st_lsm6dsm: fix array index issue that cause hard fault

samplesCounter[] array is indexed by SensorFifoIndex and not by SensorIndex.
With wrong indexing sometimes pushData function was called while no memory
was allocated for sensor data.
The patch 1870f068 show immediatly the access to memory location 0 causing
hard fault.

Change-Id: I891b2a720faa0e7062694b6c558f3f28c6a0f4cc
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
1 file changed
tree: 16ce2a4db1c9e0654dd8eb3cdfca6abe638de143
  1. contexthubhal/
  2. firmware/
  3. inc/
  4. lib/
  5. sensorhal/
  6. util/
  7. .gitignore