From 658389148641c7b9951ced21f422580f0976af78 Mon Sep 17 00:00:00 2001 From: phyto Date: Thu, 4 Apr 2019 01:24:40 +0200 Subject: [PATCH] apero du mercredi soir, no bug spotted --- plot.sh | 4 ++-- simulator/rdtemp/rdtemp.ino | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/plot.sh b/plot.sh index c7c3469..18f70ff 100755 --- a/plot.sh +++ b/plot.sh @@ -7,10 +7,10 @@ DATAFILE="serial/foo.dat" IMAGE="graphe.png" TMPFILE="/tmp/tmpdata" -tail -700 < ${DATAFILE} > ${TMPFILE} +tail -1200 < ${DATAFILE} > ${TMPFILE} gnuplot << __EOC__ -set term png size 1000,700 +set term png size 1400,700 set output "${IMAGE}" set ytics 2 set xtics diff --git a/simulator/rdtemp/rdtemp.ino b/simulator/rdtemp/rdtemp.ino index 101cf7b..82c5d88 100644 --- a/simulator/rdtemp/rdtemp.ino +++ b/simulator/rdtemp/rdtemp.ino @@ -12,6 +12,7 @@ void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial.print("\n"); + /* XXX */ /* changing the voltage reference of the ADC * greatly increase the prcision on the limited @@ -32,9 +33,8 @@ void updatevalues(short *ptr) { short foo, pass; - for (foo=0; foo