Преглед изворни кода

count negative peaks instead of positive ones

Xℹ Ruoyao пре 5 година
родитељ
комит
45651532f2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      jump_rope_count_device.c

+ 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;