Changeset 4896 for trunk/module-serial.c
- Timestamp:
- 04/02/11 23:26:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-serial.c
r4852 r4896 1043 1043 if( client->serialdata->dsr9500type==P_DSR_WITHSID ) 1044 1044 { 1045 s printf((char *)buf, "%c%08lX%04X%s%04X\n\r",1045 snprintf((char *)buf, 512, "%c%08lX%04X%s%04X\n\r", 1046 1046 3, er->prid, er->caid, cs_hexdump(0, er->ecm, er->l), er->srvid); 1047 1047 oscam_ser_send(client, buf, (er->l<<1)+19); // 1 + 8 + 4 + l*2 + 4 + 2 … … 1049 1049 else 1050 1050 { 1051 s printf((char *)buf, "%c%08lX%04X%s\n\r",1051 snprintf((char *)buf, 512, "%c%08lX%04X%s\n\r", 1052 1052 3, er->prid, er->caid, cs_hexdump(0, er->ecm, er->l)); 1053 1053 oscam_ser_send(client, buf, (er->l<<1)+15); // 1 + 8 + 4 + l*2 + 2 … … 1125 1125 void module_oscam_ser(struct s_module *ph) 1126 1126 { 1127 strcpy(ph->desc, "serial");1127 cs_strncpy(ph->desc, "serial", sizeof(ph->desc)); 1128 1128 ph->type=MOD_CONN_SERIAL; 1129 1129 ph->multi=1;
Note:
See TracChangeset
for help on using the changeset viewer.