Changeset 116


Ignore:
Timestamp:
2014-06-05 15:47:20 (11 years ago)
Author:
mcvflorin
Message:

Replaced setting the CommFailure variable with the luup.set_failure function call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/UI7/I_ApexisUI7.xml

    r115 r116  
    282282                luup.log("ApexisUI7:GetCgiBinFlag- Failed to communicate with camera, ret code=".. retCode, 1) 
    283283                luup.variable_set(HAD_SID, "Configured", "0", lug_device) 
    284                 luup.variable_set(HAD_SID, "CommFailure", "1", lug_device) 
     284                luup.set_failure(1, lug_device) 
    285285                return nil, "Failed to communicate with camera" 
    286286            else 
     
    10151015                ShowSysError("Camera IP is missing") 
    10161016                luup.variable_set(HAD_SID, "Configured", "0", lug_device) 
    1017                 luup.variable_set(HAD_SID, "CommFailure", "1", lug_device) 
     1017                luup.set_failure(1, lug_device) 
    10181018                return false 
    10191019            end 
     
    10851085 
    10861086            luup.variable_set(HAD_SID, "Configured", configured, lug_device) 
    1087             luup.variable_set(HAD_SID, "CommFailure", commFailure, lug_device) 
     1087            luup.set_failure(commFailure, lug_device) 
    10881088 
    10891089            return (configured == 1) 
     
    11711171            if retCode < 100 then 
    11721172                luup.log("ApexisUI7:CheckCameraStatus- Failed to communicate with camera, ret code=".. retCode, 1) 
    1173                 luup.variable_set(HAD_SID, "CommFailure", "1", lug_device) 
     1173                luup.set_failure(1, lug_device) 
    11741174            else 
    11751175                luup.log("ApexisUI7:CheckCameraStatus- Comm ok, ret code=".. retCode) 
    1176                 luup.variable_set(HAD_SID, "CommFailure", "0", lug_device) 
     1176                luup.set_failure(0, lug_device) 
    11771177            end 
    11781178 
Note: See TracChangeset for help on using the changeset viewer.