Browse Source

camd: Fix reconnect after X EMM_ERRORS.

Georgi Chorbadzhiyski 12 years ago
parent
commit
496491b547
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      camd.c

+ 1
- 1
camd.c View File

@@ -155,7 +155,7 @@ static int camd_send_ecm(struct ts *ts, struct camd_msg *msg) {
155 155
 static int camd_send_emm(struct ts *ts, struct camd_msg *msg) {
156 156
 	struct camd *c = &ts->camd;
157 157
 	int ret = c->ops.do_emm(c, msg);
158
-	if (ret < 0) {
158
+	if (ret < 1) {
159 159
 		c->emm_recv_errors++;
160 160
 		if (c->emm_recv_errors >= EMM_RECV_ERRORS_LIMIT) {
161 161
 			ts_LOGf("ERR | Error sending emm packet, reconnecting to camd.\n");

Loading…
Cancel
Save