Skip to content

Commit

Permalink
Update LSM6DSV16X_Sensor_Fusion.ino
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <carlo.parata@st.com>
  • Loading branch information
cparata authored Sep 29, 2023
1 parent 8b8317f commit e8b146f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void loop()
// Compute the elapsed time within loop cycle and wait
elapsedTime = millis() - startTime;

if ((long)(ALGO_PERIOD - elapsedTime)) {
if ((long)(ALGO_PERIOD - elapsedTime) > 0) {
delay(ALGO_PERIOD - elapsedTime);
}
}
Expand Down

0 comments on commit e8b146f

Please sign in to comment.