Skip to content

Commit

Permalink
Merge pull request #165 from jlanger/repair-millis-references
Browse files Browse the repository at this point in the history
  • Loading branch information
sidcha committed Feb 18, 2024
2 parents ae3ac97 + ab42062 commit 3740fd1
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3740fd1

Please sign in to comment.