refactor uorb: rename published to advertised

No semantic change (yet)
This commit is contained in:
Beat Küng
2019-11-20 09:19:26 +01:00
committed by Daniel Agar
parent 0f6f795aca
commit 63b2befeed
11 changed files with 25 additions and 25 deletions

View File

@@ -73,14 +73,14 @@ public:
bool subscribe() { return _subscription.subscribe(); }
bool published() { return _subscription.published(); }
bool advertised() { return _subscription.advertised(); }
/**
* Check if there is a new update.
* */
bool updated()
{
if (published() && (hrt_elapsed_time(&_last_update) >= _interval_us)) {
if (advertised() && (hrt_elapsed_time(&_last_update) >= _interval_us)) {
return _subscription.updated();
}