Quellcode durchsuchen

count negative peaks instead of positive ones

Xℹ Ruoyao vor 4 Jahren
Ursprung
Commit
45651532f2
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;