fix coredump

This commit is contained in:
Thomas Kunze
2019-07-15 21:32:00 +02:00
parent 24834d0f51
commit c5bf61a44f
2 changed files with 8 additions and 5 deletions

View File

@@ -25,8 +25,10 @@ void measureTemp()
lastsend = now;
int r = rand();
double currentValue = (r * 1.0) / (RAND_MAX * 1.0);
currentValue *= (670433.28 + 273);
currentValue -= 273;
currentValue *= 100;
currentValue -= 50;
// currentValue *= (670433.28 + 273);
// currentValue -= 273;
println(currentValue);
CURR.value(currentValue);