Commit 6c34d651 authored by nextime's avatar nextime

Added debug on ASCII argument

parent 1fe0f7c9
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<? <?
if($panel && is_array($panel)) { if($panel && is_array($panel)) {
$buttonar=getPanelButtons($_DOMOTIKA['username'],$panel['panel_content'],$panel['panel_sections'],$panel['panel_websections'],$panel['panel_selector'],true); $buttonar=getPanelButtons($_DOMOTIKA['username'],$panel['panel_content'],$panel['panel_sections'],$panel['panel_websections'],$panel['panel_selector'],true);
//print_r($buttonar);
if(is_numeric($panel['panel_height'])) $panel['panel_height'].="px"; if(is_numeric($panel['panel_height'])) $panel['panel_height'].="px";
$visible=""; $visible="";
if($panel['panel_visible']!="all") $visible=$panel['panel_visible']; if($panel['panel_visible']!="all") $visible=$panel['panel_visible'];
......
...@@ -1967,6 +1967,15 @@ class domotikaService(service.Service): ...@@ -1967,6 +1967,15 @@ class domotikaService(service.Service):
elif cmd=='IOSUBTYPE': elif cmd=='IOSUBTYPE':
if argdict['io_subtype'] is None or int(sel)!=argdict['io_subtype']: if argdict['io_subtype'] is None or int(sel)!=argdict['io_subtype']:
return False return False
elif cmd=='ASCII':
log.info("ASCII MATCH: "+str(argdict['raw'])+" "+str(sel))
if argdict['raw'] is None:
log.info("ASCII RAW IS NONE")
return False
if str(argdict['raw'])!=str(sel):
log.info("ASCII DESN'T MATCH! "+str(sel))
return False
log.info("ASCII MATCHED! "+str(sel))
elif cmd=='ARGDATA': elif cmd=='ARGDATA':
if argdict['arg_data'] is None: if argdict['arg_data'] is None:
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment