latester: Cleanup and correct subtraction with negative results
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 17 Oct 2014 14:52:12 +0000 (16:52 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 17 Oct 2014 14:52:12 +0000 (16:52 +0200)
commit3bd8177e9074df7ad74134a49072a4097026e38f
tree7e160ea86989540ab625ac5e33fe6c7f487d2cd9
parent2c56cfb6f9e9fa6c85cb3eddceb036200697f835
latester: Cleanup and correct subtraction with negative results

- Cleanup = move more complex calculation from RT thread to processing
  thread.
- Negative result happened what message TX time was greater than
  timestamp difference. This can happen if first timestamp is delayed
  and the second not.
latester/latester.c