1
0
forked from me/IronOS

Rough pass

This commit is contained in:
Ben V. Brown
2021-09-17 21:13:21 +10:00
parent 1d64e786de
commit 87b22e52ed
5 changed files with 12 additions and 32 deletions

View File

@@ -46,13 +46,6 @@ uint8_t QC_DM_PulledDown() { return gpio_input_bit_get(USB_DM_LOW_GPIO_Port, USB
#endif
void QC_resync() {
#ifdef POW_QC
uint8_t targetvoltage = 90;
if (getSettingValue(SettingsOptions::QCIdealVoltage) == 1) {
targetvoltage = 120;
} else if (getSettingValue(SettingsOptions::QCIdealVoltage) == 2) {
targetvoltage = 200;
}
seekQC(targetvoltage, getSettingValue(SettingsOptions::VoltageDiv)); // Run the QC seek again if we have drifted too much
seekQC(getSettingValue(SettingsOptions::QCIdealVoltage), getSettingValue(SettingsOptions::VoltageDiv)); // Run the QC seek again if we have drifted too much
#endif
}