Changeset 1151


Ignore:
Timestamp:
01/09/10 22:51:18 (12 years ago)
Author:
alno
Message:

WebIf:

  • Reader section "detect" added if protocol is "mouse"
Location:
branches/monitor-improvement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.c

    r1149 r1151  
    489489    tpl_addVar(vars, 0, "RSAKEY", (char *)reader[ridx].rsa_mod);
    490490    tpl_addVar(vars, 0, "BOXKEY", (char *)reader[ridx].nagra_boxkey);
    491     //todo "detect"
     491
     492    if (reader[ridx].detect&0x80)
     493        tpl_printf(vars, 0, "DETECT", "!%s", RDR_CD_TXT[reader[ridx].detect&0x7f]);
     494    else
     495        tpl_printf(vars, 0, "DETECT", "%s", RDR_CD_TXT[reader[ridx].detect&0x7f]);
     496
    492497    tpl_printf(vars, 0, "MHZ", "%d", reader[ridx].mhz);
    493498    tpl_printf(vars, 0, "CARDMHZ", "%d", reader[ridx].cardmhz);
  • branches/monitor-improvement/oscam-http.h

    r1149 r1151  
    379379    <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
    380380    <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
    381     <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
     381    <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"\
     382    <TR><TD>Detect:</TD><TD><input name=\"detect\" type=\"text\" size=\"3\" maxlength=\"5\" value=\"##DETECT##\"></TD></TR>\n"
    382383#define TPLREADERCONFIGSMARTBIT "\
    383384        <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
Note: See TracChangeset for help on using the changeset viewer.