Skip to content

Commit

Permalink
Merge pull request #9 from garaminowicz/master
Browse files Browse the repository at this point in the history
simplify condition in isotp_poll()
  • Loading branch information
SimonCahill authored Oct 11, 2022
2 parents c980603 + bcb10c3 commit 162ceaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void isotp_poll(IsoTpLink *link) {
if (/* send data if bs_remain is invalid or bs_remain large than zero */
(ISOTP_INVALID_BS == link->send_bs_remain || link->send_bs_remain > 0) &&
/* and if st_min is zero or go beyond interval time */
(0 == link->send_st_min || (0 != link->send_st_min && IsoTpTimeAfter(isotp_user_get_ms(), link->send_timer_st)))) {
(0 == link->send_st_min || IsoTpTimeAfter(isotp_user_get_ms(), link->send_timer_st))) {

ret = isotp_send_consecutive_frame(link);
if (ISOTP_RET_OK == ret) {
Expand Down

0 comments on commit 162ceaa

Please sign in to comment.