Skip to content

Commit

Permalink
[ril] Allow setting cell info update period to 0. JB#50608
Browse files Browse the repository at this point in the history
According to ril.h, a value of 0 means invoke RIL_UNSOL_CELL_INFO_LIST when
any of the reported information changes.
  • Loading branch information
d-grigorev committed Jul 27, 2020
1 parent f3eb9b8 commit 86d8149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofono/drivers/ril/ril_cell_info.c
Expand Up @@ -373,7 +373,7 @@ static void ril_cell_info_query(struct ril_cell_info *self)
static void ril_cell_info_set_rate(struct ril_cell_info *self)
{
GRilIoRequest *req = grilio_request_array_int32_new(1,
(self->update_rate_ms > 0) ? self->update_rate_ms : INT_MAX);
(self->update_rate_ms >= 0) ? self->update_rate_ms : INT_MAX);

grilio_request_set_retry(req, RIL_RETRY_MS, MAX_RETRIES);
grilio_request_set_retry_func(req, ril_cell_info_retry);
Expand Down

0 comments on commit 86d8149

Please sign in to comment.