Open kinimodkoch opened 1 year ago
Function transport_fifo_reset()
is only called from:
min_init_context()
: usually called once during initialization, when the static uint32_t now;
is initialized to 0min_poll()
-> rx_byte()
-> valid_frame_received()
: the value of now
is updated in min_poll()
min_transport_reset()
: usually called in runtime, after calling min_poll()
min_poll()
is intended to be called every "tick"/loop iteration, so I think it was meant as a feature to only update now
inside this function. This ensures all operations in this processing step will use the same now
time, including any later calls to min_transport_reset()
.
In
min.c
, the functiontransport_fifo_reset
uses thenow
variable, but does not update it first. I suggest to insert a call tomin_time_ms()
.