Skip to content
Snippets Groups Projects
Commit 89db7269 authored by Lennard's avatar Lennard
Browse files

Small update

parent f771bea8
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ class TimedRotatingFileHandlerWithHeader(logging.handlers.TimedRotatingFileHandl ...@@ -35,7 +35,7 @@ class TimedRotatingFileHandlerWithHeader(logging.handlers.TimedRotatingFileHandl
if self.shouldRollover(record): if self.shouldRollover(record):
self.doRollover() self.doRollover()
stream = self.stream stream = self.stream
if self._header and self._header not in self.stream.readlines(): if self._header:
stream.write(self._header + self.terminator) stream.write(self._header + self.terminator)
else: else:
stream = self.stream stream = self.stream
......
...@@ -5,7 +5,7 @@ HX711_ADC loadCells[] = {HX711_ADC(2, 3), HX711_ADC(6, 7), HX711_ADC(8, 9), HX71 ...@@ -5,7 +5,7 @@ HX711_ADC loadCells[] = {HX711_ADC(2, 3), HX711_ADC(6, 7), HX711_ADC(8, 9), HX71
float measurements[4]; float measurements[4];
float offsets[4]; float offsets[4];
int count = 100; int count = 100; // number of measurements
long stabilization = 2000; long stabilization = 2000;
void readData() { void readData() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment