• Cedric Roux's avatar
    T hacks: minor bugfix: don't log more than once · 44637de3
    Cedric Roux authored
    In time_meas.c, when getting 0 for the event, we log delta time with
    previous 1 for the event. "start_valid" was not cleared, so receiving
    a second 0 without 1 in between may lead to wrong logging.
    
    Should not happen in practice, but still, little bug.
    
    (Note: we don't protect against streams of 1, but this case should also
    not happen.)
    44637de3
time_meas.c 3.05 KB