summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/sensor.c
diff options
context:
space:
mode:
Diffstat (limited to 'pressure_control/firmware/sensor.c')
-rw-r--r--pressure_control/firmware/sensor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pressure_control/firmware/sensor.c b/pressure_control/firmware/sensor.c
index 08eca77..6e59bb1 100644
--- a/pressure_control/firmware/sensor.c
+++ b/pressure_control/firmware/sensor.c
@@ -72,6 +72,12 @@ void sensor_trigger_read(struct sensor *s)
adc_trigger(s->adc_mux, 1);
}
+void sensor_retrigger(void)
+{
+ /* Retrigger an ADC conversion on the currently active sensor. */
+ adc_trigger(active_sensor->adc_mux, 1);
+}
+
void sensor_init(struct sensor *s)
{
mdelay(20); /* Warm-up time */
bues.ch cgit interface