1
0
forked from me/IronOS

Split DC input and QC from being an OR :)

This commit is contained in:
Ben V. Brown
2020-11-01 14:28:12 +11:00
parent 3aeab055bf
commit 3146343bbb
7 changed files with 241 additions and 359 deletions

View File

@@ -18,6 +18,7 @@
#endif
#ifdef MODEL_TS100
#define POW_DC
#define ACCEL_MMA
#define ACCEL_LIS
#define TEMP_TMP36

View File

@@ -18,6 +18,8 @@
#ifdef MODEL_Pinecil
#define POW_PD
#define POW_QC
#define POW_DC
#define POW_QC_20V
#define TEMP_TMP36
#define ACCEL_BMA
#define HALL_SENSOR

View File

@@ -53,6 +53,13 @@ uint8_t QC_DM_PulledDown() {
#endif
void QC_resync() {
#ifdef POW_QC
seekQC((systemSettings.cutoutSetting) ? 120 : 90, systemSettings.voltageDiv); // Run the QC seek again if we have drifted too much
uint8_t targetvoltage = 90;
if (systemSettings.QCIdealVoltage == 1) {
targetvoltage = 120;
} else if (systemSettings.QCIdealVoltage == 2) {
targetvoltage = 200;
}
seekQC(targetvoltage, systemSettings.voltageDiv); // Run the QC seek again if we have drifted too much
#endif
}