mirror of
https://github.com/arwidcool/Solder-Plate.git
synced 2024-11-12 01:10:52 +01:00
fix temp from prev soldering and also add startTimes
This commit is contained in:
parent
a594c07103
commit
74d16003d2
@ -29,6 +29,9 @@ void TFT_Display::init(ReflowProfile *profile)
|
||||
|
||||
clear();
|
||||
|
||||
prevousTempXY.x = graphXY.x;
|
||||
prevousTempXY.y = graphXY.y;
|
||||
|
||||
tft.setTextColor(ST77XX_WHITE);
|
||||
tft.setTextSize(2);
|
||||
TFT_XY xy = getCenteredTextXY(profile->name);
|
||||
|
10
src/reflow.h
10
src/reflow.h
@ -95,6 +95,7 @@ public:
|
||||
uint16_t endTimes[5] = {0};
|
||||
uint16_t startTimes[5] = {0};
|
||||
uint8_t endTemps[5] = {0};
|
||||
uint8_t startTemps[5] = {0};
|
||||
StopWatch timer;
|
||||
|
||||
void start()
|
||||
@ -118,11 +119,18 @@ public:
|
||||
startTimes[3] = endTimes[2];
|
||||
startTimes[4] = endTimes[3];
|
||||
|
||||
endTemps[0] = steps[0].calcTempAtPercentage(20, 1);
|
||||
startTemps[0] = 20;
|
||||
|
||||
endTemps[0] = steps[0].calcTempAtPercentage(startTemps[0], 1);
|
||||
endTemps[1] = steps[1].calcTempAtPercentage(endTemps[0], 1);
|
||||
endTemps[2] = steps[2].calcTempAtPercentage(endTemps[1], 1);
|
||||
endTemps[3] = steps[3].calcTempAtPercentage(endTemps[2], 1);
|
||||
endTemps[4] = steps[4].calcTempAtPercentage(endTemps[3], 1);
|
||||
|
||||
startTemps[1] = endTemps[0];
|
||||
startTemps[2] = endTemps[1];
|
||||
startTemps[3] = endTemps[2];
|
||||
startTemps[4] = endTemps[3];
|
||||
}
|
||||
|
||||
ReflowStep reflowStep()
|
||||
|
Loading…
Reference in New Issue
Block a user