Selaa lähdekoodia

count negative peaks instead of positive ones

Xℹ Ruoyao 5 vuotta sitten
vanhempi
commit
45651532f2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;