diff --git a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp index f2dd5486792..0fde8b293ae 100644 --- a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp +++ b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp @@ -999,9 +999,10 @@ GYROSIM::measure_trampoline(void *arg) void GYROSIM::measure() { - static int x = 0; #if 0 + static int x = 0; + // Verify the samples are being taken at the expected rate if (x == 99) { x = 0;