1
0
forked from me/IronOS

Fix normal solder screen issues, disable I2C DMA pending some testing

This commit is contained in:
Ben V. Brown
2018-12-16 16:16:31 +11:00
parent 21afc3e898
commit b744f51e2d
14 changed files with 287 additions and 93 deletions

View File

@@ -662,6 +662,10 @@ static void setTipOffset() {
osDelay(333);
}
systemSettings.CalibrationOffset = offset / 15;
// Need to remove from this the ambient temperature offset
uint32_t ambientoffset = getHandleTemperature(); // Handle temp in C
ambientoffset *=1000;
ambientoffset /= tipGainCalValue;
setCalibrationOffset(systemSettings.CalibrationOffset); // store the error
osDelay(100);
}
@@ -812,10 +816,10 @@ static void settings_setCalibrateVIN(void) {
for (;;) {
OLED::setCursor(0, 0);
OLED::printNumber(getInputVoltageX10(systemSettings.voltageDiv) / 10,
OLED::printNumber(getInputVoltageX10(systemSettings.voltageDiv,0) / 10,
2);
OLED::print(".");
OLED::printNumber(getInputVoltageX10(systemSettings.voltageDiv) % 10,
OLED::printNumber(getInputVoltageX10(systemSettings.voltageDiv,0) % 10,
1);
OLED::print("V");