minor fixes

This commit is contained in:
Andrea Baccega 2024-01-28 16:55:27 +01:00
parent 29db45865c
commit a594c07103
3 changed files with 11 additions and 7 deletions

View File

@ -59,10 +59,10 @@ void TFT_Display::drawRealTemp(double *temp, float percentage)
float temperature = static_cast<float>(*temp);
// Serial.print("Time:");
// Serial.print(time);
// Serial.print(" Temp:");
// Serial.println(temperature);
Serial.print("Time:");
Serial.print(percentage);
Serial.print(" Temp:");
Serial.println(temperature);
uint16_t eplased = drawTimer.elapsed();

View File

@ -4,11 +4,14 @@
#include "../common.h"
#include "../globals.h"
// If you didnt solder the LEDS in order, change the order here just change the pin numbers till it matches your board
#define GREEN_LED_PIN RIGHT_LED_PIN
// DO NOT TOUCH
#define LEFT_LED_PIN 20 //Should be RED
#define MID_LED_PIN 19 //Should be YELLOW
#define RIGHT_LED_PIN 18 //Should be GREEN
#define GREEN_LED_PIN RIGHT_LED_PIN
enum LedDesiredState

View File

@ -110,6 +110,7 @@ public:
endTimes[2] = endTimes[1] + steps[2].duration;
endTimes[3] = endTimes[2] + steps[3].duration;
endTimes[4] = endTimes[3] + steps[4].duration;
startTimes[0] = 0;
startTimes[1] = endTimes[0];
@ -147,7 +148,7 @@ public:
float getPercentage()
{
return timer.elapsed() / TOMILLIS(endTimes[4]);
return timer.elapsed() / (double)TOMILLIS(endTimes[4]);
}
float getTargetTemp()