Split DC input and QC from being an OR :)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef MODEL_TS100
|
||||
#define POW_DC
|
||||
#define ACCEL_MMA
|
||||
#define ACCEL_LIS
|
||||
#define TEMP_TMP36
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user