Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repaired references to osdp_millis_now() #165

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/osdp_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ static int cp_phy_state_update(struct osdp_pd *pd)
case OSDP_CP_PHY_STATE_REPLY_WAIT:
rc = cp_process_reply(pd);
if (rc == OSDP_CP_ERR_NONE) {
pd->tstamp = millis_now();
pd->tstamp = osdp_millis_now();
if (sc_is_active(pd)) {
pd->sc_tstamp = osdp_millis_now();
}
Expand Down Expand Up @@ -1155,7 +1155,7 @@ static void cp_state_change(struct osdp_pd *pd, enum osdp_cp_state_e next)
LOG_INF("Online; %s SC", sc_is_active(pd) ? "With" : "Without");
break;
case OSDP_CP_STATE_OFFLINE:
pd->tstamp = millis_now();
pd->tstamp = osdp_millis_now();
if (pd->wait_ms == 0) {
/* first, retry after ~1 sec */
pd->wait_ms = 1 << 10;
Expand Down
Loading