Browse Source
- reorders operations, such that the most expensive one (orb_copy) is done only when really needed. - corner case: when the topic was not advertised yet, orb_stat() would fail and then update() was called, which succeeds for the first advertisement. In that case the timestamp was incorrectly set to 0 and true was returned. The next call would again return true, because the timestamp was updated, but the topic data was still the same. Reduces CPU load by ~2% on a Pixracer.sbg
Beat Küng
7 years ago
committed by
Lorenz Meier
1 changed files with 7 additions and 7 deletions
Loading…
Reference in new issue