From ce08ba4689b54f8e27a5418f490d9c87fe71cc78 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 17 Nov 2009 10:43:45 +0000 Subject: moved all .osin. instances from any instance containing it to the end of the instance. I have checked to find errors but NOT very thoroughly. The XML files might contain errors, but i will correct these, if any, when i encounter them later on --- server/xml/macros/tonometri-1.0.xml | 58 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'server/xml/macros/tonometri-1.0.xml') diff --git a/server/xml/macros/tonometri-1.0.xml b/server/xml/macros/tonometri-1.0.xml index 61902a8..7cf9d0e 100644 --- a/server/xml/macros/tonometri-1.0.xml +++ b/server/xml/macros/tonometri-1.0.xml @@ -2,64 +2,64 @@ out = '' - if ( getValue('tonometri.odxt.missing') == '' or getValue('tonometri.osin.missing') == '' ) + if ( getValue('tonometri.mangler.odxt') == '' or getValue('tonometri.mangler.osin') == '' ) then out = out .. getValue('tonometri.method') .. ':\n' end - if ( getValue('tonometri.odxt.missing') == '' ) + if ( getValue('tonometri.mangler.odxt') == '' ) then - out = out .. 'o.dxt: ' .. getValue('tonometri.odxt.pressure') .. ' mmHg\n' + out = out .. 'o.dxt: ' .. getValue('tonometri.pressure.odxt') .. ' mmHg\n' end - if ( getValue('tonometri.osin.missing') == '' ) + if ( getValue('tonometri.mangler.osin') == '' ) then - out = out .. 'o.sin: ' .. getValue('tonometri.osin.pressure') .. ' mmHg\n' + out = out .. 'o.sin: ' .. getValue('tonometri.pressure.osin') .. ' mmHg\n' end return out - - + + - + value = 0 timestamp = 0 source = '' - if( missing_eye_right ) + if( missing_eye_odxt ) then - if( missing_eye_right.value and missing_eye_right.value == '' ) + if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) then value = '' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source else value = 'mangler' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source end end return value, timestamp, source - + value = 0 timestamp = 0 source = '' - if( missing_eye_left ) + if( missing_eye_osin ) then - if( missing_eye_left.value and missing_eye_left.value == '' ) + if( missing_eye_osin.value and missing_eye_osin.value == '' ) then value = '' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source else value = 'mangler' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source end end return value, timestamp, source @@ -88,7 +88,7 @@ enable('right_eye_frame') end - if( getValue('tonometri.odxt.missing') == 'mangler' and getValue('tonometri.osin.missing') == 'mangler' ) + if( getValue('tonometri.mangler.odxt') == 'mangler' and getValue('tonometri.mangler.osin') == 'mangler' ) then disable('device_frame') else @@ -105,7 +105,7 @@ enable('left_eye_frame') end - if( getValue('tonometri.odxt.missing') == 'mangler' and getValue('tonometri.osin.missing') == 'mangler' ) + if( getValue('tonometri.mangler.odxt') == 'mangler' and getValue('tonometri.mangler.osin') == 'mangler' ) then disable('device_frame') else @@ -123,13 +123,13 @@