bmsd/ispindels.c

changeset 799
cf145b35d65f
parent 790
98bd22f6629b
child 843
29e7223e37ae
--- a/bmsd/ispindels.c	Tue Jul 19 13:55:53 2022 +0200
+++ b/bmsd/ispindels.c	Fri Jul 22 12:15:05 2022 +0200
@@ -327,7 +327,7 @@
         line = xstrcat(line, (char *)",");
 	line = xstrcat(line, ispindel->uuid);
 
-	snprintf(query, 511, "INSERT INTO log_ispindel SET code='%s', datetime='%s', " \
+	snprintf(query, 511, "INSERT IGNORE INTO log_ispindel SET code='%s', datetime='%s', " \
 			"temperature='%.4f', plato='%.5f', sg='%.5f', battery='%.6f', " \
 			"angle='%.5f', refresh='%d', uuid='%s'",
 			ispindel->beercode, datetime, ispindel->temperature, ispindel->gravity,

mercurial