You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while (dataAvailable(fd) ==0) delay(POLLING_DELAY); //Potential TODO: avoid this to get faster nearly parralel mesurments
A defective sensor appears to not change its state. Use this Hotfix to prevent the software from stopping completely
int i = 0;
while (dataAvailable(fd) == 0){
if(i < TIMEOUT_COUNTER){
printf("Measurement at sensor timeout do not trust that received data is new");
break;
}
delay(POLLING_DELAY); //Potential TODO: avoid this to get faster nearly parralel mesurments
i++;
}
Attantion dataAvailable is a register on the sensor that indicates that the measurement is finished and ready to be read from the sensor.
Not waiting for this may result in old data being read.
The text was updated successfully, but these errors were encountered:
SpectralSensor/Code/lib/wiringPi_AS726X_Libary/AS726X.c
Line 191 in e9f1fdc
A defective sensor appears to not change its state. Use this Hotfix to prevent the software from stopping completely
Attantion dataAvailable is a register on the sensor that indicates that the measurement is finished and ready to be read from the sensor.
Not waiting for this may result in old data being read.
The text was updated successfully, but these errors were encountered: