Эх сурвалжийг харах

count negative peaks instead of positive ones

Xℹ Ruoyao 5 жил өмнө
parent
commit
45651532f2

+ 1 - 1
jump_rope_count_device.c

@@ -130,7 +130,7 @@ int process_packet(struct jump_rope_count_device *dev,
 	}
 
 	if (schmidt_trig(&dev->trig_gz, gz) == 1 &&
-	    schmidt_get(&dev->trig_gz) == 1 &&
+	    schmidt_get(&dev->trig_gz) == 0 &&
 	    dev->cy_suppress == 0)
 	{
 		*result = RESULT_TRIGGERED;