|
@@ -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");
|