Commit bed85e52 authored by Michał Glinka's avatar Michał Glinka
Browse files

Fix meaner5 dropping unused msgs

+ all msgs were cleared on every loop cycle so no unusued msgs could be
used again
+ still requires better unit tests, as it was supposedly covered
parent 807b9892
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ class Meaner5:
	def loop(self):
		now = self.time_source.time()
		next_probe_time = self.calculate_first_probe_time(now)
		while not interrupt_caught:
		self.clear_msgs()
		while not interrupt_caught:
			next_save_time = self.calculate_save_time(next_probe_time)
			now = self.time_source.time()
			if next_save_time < now: