From e2791d80998cefb89b457374bb446cd555c5680c Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 20 Jun 2023 16:58:47 -0700 Subject: [PATCH] split out AnalogChannelResult --- firmware/boards/port.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/firmware/boards/port.h b/firmware/boards/port.h index 22d4530..4bf2f45 100644 --- a/firmware/boards/port.h +++ b/firmware/boards/port.h @@ -4,15 +4,18 @@ #include "port_shared.h" #include "wideband_config.h" +struct AnalogChannelResult +{ + float NernstVoltage; + float PumpCurrentVoltage; + /* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM, + * used for both Vbatt measurement and Heater diagnostic */ + float BatteryVoltage; +}; + struct AnalogResult { - struct { - float NernstVoltage; - float PumpCurrentVoltage; - /* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM, - * used for both Vbatt measurement and Heater diagnostic */ - float BatteryVoltage; - } ch[AFR_CHANNELS]; + AnalogChannelResult ch[AFR_CHANNELS]; float VirtualGroundVoltageInt; };