1
0
forked from me/IronOS

Fix: Ts80 Divisor links

This commit is contained in:
Ben V. Brown
2018-10-18 14:20:27 +11:00
parent 60a951f56f
commit d442a1d185
3 changed files with 15 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ enum Orientation {
ORIENTATION_RIGHT_HAND = 1,
ORIENTATION_FLAT = 3
};
#define MODEL_TS80
#ifndef MODEL_TS100
#ifndef MODEL_TS80
#error "Please Define the model you are building for! MODEL=TS100 or MODEL=TS80"
@@ -124,12 +125,12 @@ uint16_t ctoTipMeasurement(uint16_t temp);
uint16_t tipMeasurementToC(uint16_t raw);
uint16_t ftoTipMeasurement(uint16_t temp);
uint16_t tipMeasurementToF(uint16_t raw);
void seekQC(int16_t Vx10);
void seekQC(int16_t Vx10,uint16_t divisor);
void setCalibrationOffset(int16_t offSet);
void setTipType(enum TipType tipType, uint8_t manualCalGain);
uint32_t calculateTipR(uint8_t useFilter);
int16_t calculateMaxVoltage(uint8_t useFilter, uint8_t useHP);
void startQC(); // Tries to negotiate QC for highest voltage, must be run after
void startQC(uint16_t divisor); // Tries to negotiate QC for highest voltage, must be run after
// RToS
// This will try for 12V, failing that 9V, failing that 5V
// If input is over 12V returns -1