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/oejentryk-1.0.xml | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'server/xml/macros/oejentryk-1.0.xml') diff --git a/server/xml/macros/oejentryk-1.0.xml b/server/xml/macros/oejentryk-1.0.xml index f796580..fb6cca4 100644 --- a/server/xml/macros/oejentryk-1.0.xml +++ b/server/xml/macros/oejentryk-1.0.xml @@ -15,22 +15,22 @@ out = '' - if ( getValue('tonometer.odxt.missing') == '' or getValue('tonometer.osin.missing') == '' ) + if ( getValue('tonometer.mangler.odxt') == '' or getValue('tonometer.mangler.osin') == '' ) then out = out .. 'Øjentryk:\n' end - if ( getValue('tonometer.odxt.missing') == '' ) + if ( getValue('tonometer.mangler.odxt') == '' ) then out = out .. 'o.dxt: ' .. getValue('tonometer.pressure.odxt') .. ' mmHg\n' end - if ( getValue('tonometer.osin.missing') == '' ) + if ( getValue('tonometer.mangler.osin') == '' ) then out = out .. 'o.sin: ' .. getValue('tonometer.pressure.odxt') .. ' mmHg\n' end - if ( getValue('tonometer.odxt.missing') == '' or getValue('tonometer.osin.missing') == '' ) + if ( getValue('tonometer.mangler.odxt') == '' or getValue('tonometer.mangler.osin') == '' ) then out = out .. getValue('tonometer.device') .. '.\n' end @@ -38,46 +38,46 @@ 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 @@ -106,7 +106,7 @@ enable('right_eye_frame') end - if( getValue('tonometer.odxt.missing') == 'mangler' and getValue('tonometer.osin.missing') == 'mangler' ) + if( getValue('tonometer.mangler.odxt') == 'mangler' and getValue('tonometer.mangler.osin') == 'mangler' ) then disable('device_frame') else @@ -123,7 +123,7 @@ enable('left_eye_frame') end - if( getValue('tonometer.odxt.missing') == 'mangler' and getValue('tonometer.osin.missing') == 'mangler' ) + if( getValue('tonometer.mangler.odxt') == 'mangler' and getValue('tonometer.mangler.osin') == 'mangler' ) then disable('device_frame') else @@ -141,8 +141,8 @@