Ensure records read from the devices are correctly sorted
authorMikael Berthe <mikael@lilotux.net>
Sun, 26 Feb 2017 15:37:12 +0100
changeset 15 009c05621fba
parent 14 be004d8634e1
child 16 c64c730a7b16
Ensure records read from the devices are correctly sorted This is required for the filters to work fine.
gobm65.go
--- a/gobm65.go	Sun Feb 26 15:29:01 2017 +0100
+++ b/gobm65.go	Sun Feb 26 15:37:12 2017 +0100
@@ -188,7 +188,7 @@
 	}
 
 	s.Close()
-	return items, nil
+	return mergeItems(items, []measurement{}), nil
 }
 
 func loadFromJSONFile(filename string) (items []measurement, err error) {