aboutsummaryrefslogtreecommitdiff
path: root/fsm/adc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-28 12:36:39 -0700
committerSelene ToyKeeper2023-11-28 12:36:39 -0700
commit56370218c5ca1b542a967e72b134f43a82f69ddc (patch)
tree694e392caf13b47f6036d1939705423795602d7a /fsm/adc.h
parentfsm/adc: removed dead code (diff)
downloadanduril-56370218c5ca1b542a967e72b134f43a82f69ddc.tar.gz
anduril-56370218c5ca1b542a967e72b134f43a82f69ddc.tar.bz2
anduril-56370218c5ca1b542a967e72b134f43a82f69ddc.zip
fixed incorrect temperature history for a few seconds after waking
(it used raw ADC units instead of cooked Kelvin units ... ... which was only noticeable on hardware which has different ADC units)
Diffstat (limited to '')
-rw-r--r--fsm/adc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsm/adc.h b/fsm/adc.h
index 0c0a9e5..02e33f8 100644
--- a/fsm/adc.h
+++ b/fsm/adc.h
@@ -49,7 +49,7 @@ uint16_t adc_smooth[2]; // lowpassed ADC measurements (0=voltage, 1=temperature
uint8_t adc_deferred_enable = 0; // stop waiting and run the deferred code
void adc_deferred(); // do the actual ADC-related calculations
-static inline void ADC_voltage_handler();
+static void ADC_voltage_handler();
uint8_t voltage = 0;
#ifdef USE_VOLTAGE_CORRECTION
#ifdef USE_CFG
@@ -101,7 +101,7 @@ int16_t temperature;
uint8_t therm_ceil = DEFAULT_THERM_CEIL;
int8_t therm_cal_offset = 0;
#endif
-static inline void ADC_temperature_handler();
+static void ADC_temperature_handler();
#endif // ifdef USE_THERMAL_REGULATION