diff options
| author | Selene ToyKeeper | 2018-01-24 19:43:00 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-01-24 19:43:00 -0700 |
| commit | 5ee5845d4614cb8285cdf0bf529c26bec7ce7217 (patch) | |
| tree | 646316e085d06ca544a5f0d162badbc003949492 /spaghetti-monster/fsm-adc.c | |
| parent | Thermal regulation adjustments... (diff) | |
| download | anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.tar.gz anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.tar.bz2 anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.zip | |
FSM: added ability to adjust temperature calibration in UI (lower-case therm_cal_offset var).
Diffstat (limited to 'spaghetti-monster/fsm-adc.c')
| -rw-r--r-- | spaghetti-monster/fsm-adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c index d863b94..c6f5d2a 100644 --- a/spaghetti-monster/fsm-adc.c +++ b/spaghetti-monster/fsm-adc.c @@ -150,7 +150,7 @@ ISR(ADC_vect) { // temperature else if (adc_step == 3) { // Convert ADC units to Celsius (ish) - int16_t temp = measurement - 275 + THERM_CAL_OFFSET; + int16_t temp = measurement - 275 + THERM_CAL_OFFSET + therm_cal_offset; // prime on first execution if (reset_thermal_history) { |
