1
0
forked from me/IronOS

Refactor PinecilV2 Tuning

Closes #1688
This commit is contained in:
Ben V. Brown
2023-06-04 12:13:26 +10:00
parent 286afad919
commit e7bcf920ba
7 changed files with 24 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ const uint8_t tempMeasureTicks = 25;
uint16_t totalPWM = 255; // Total length of the cycle's ticks
void resetWatchdog() {
//#TODO
// #TODO
}
#ifdef TEMP_NTC
@@ -125,9 +125,7 @@ uint8_t getButtonB() {
return val;
}
void reboot() {
hal_system_reset();
}
void reboot() { hal_system_reset(); }
void delay_ms(uint16_t count) {
// delay_1ms(count);
@@ -164,7 +162,13 @@ uint8_t getTipThermalMass() {
if (lastTipResistance >= 80) {
return TIP_THERMAL_MASS;
}
return (TIP_THERMAL_MASS * 25) / 10;
return 45;
}
uint8_t getTipInertia() {
if (lastTipResistance >= 80) {
return TIP_THERMAL_MASS;
}
return 10;
}
// We want to calculate lastTipResistance
// If tip is connected, and the tip is cold and the tip is not being heated