From 90d7c24ff2a40d3be1581adb40dc6a6b4db7bc95 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:29:50 -0800 Subject: [PATCH] Circulation - ETCo2 Monitoring fix (#718) **When merged this pull request will:** - Move the etco2 and rr variables outside of the TQ check ### IMPORTANT - [Development Guidelines](https://ace3.acemod.org/wiki/development/) are read, understood and applied. - Title of this PR uses our standard template `Component - Add|Fix|Improve|Change|Make|Remove {changes}`. --- addons/circulation/functions/fnc_AEDX_VitalsMonitor.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/circulation/functions/fnc_AEDX_VitalsMonitor.sqf b/addons/circulation/functions/fnc_AEDX_VitalsMonitor.sqf index 5eddffa25..d568199a9 100644 --- a/addons/circulation/functions/fnc_AEDX_VitalsMonitor.sqf +++ b/addons/circulation/functions/fnc_AEDX_VitalsMonitor.sqf @@ -93,10 +93,10 @@ if (_patient getVariable ["kat_AEDXPatient_PFH", -1] isEqualTo -1) then { _pr = 0; } else { _spO2 = GET_KAT_SPO2(_patient); - - _etco2 = GET_ETCO2(_patient); - _breathrate = GET_BREATHING_RATE(_patient); }; + + private _etco2 = GET_ETCO2(_patient); + private _breathrate = GET_BREATHING_RATE(_patient); // List vitals depending on if AED pads and vitals monitoring (pressure cuff + pulse oximeter) is connected if (_patient getVariable [QGVAR(AED_X_VitalsMonitor_Connected), false] && _patient getVariable [QGVAR(DefibrillatorPads_Connected), false]) then {