nanohub: drivers/st_mag40: (FIX) Move timestamping away from interrupt

Timestamp value must not be taken inside isr routine as it may be
overwritten by next interrupt before getting used hence causing troubles
at cts testing level (testSensorsMovingRates, testSensorsWithSeveralClients).

Change-Id: If174c152628ec50e223f2950be86588485ef20d1
Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 file changed