refactor uorb: rename published to advertised

No semantic change (yet)
This commit is contained in:
Beat Küng
2019-11-23 10:10:05 -05:00
committed by Daniel Agar
parent 0f6f795aca
commit 63b2befeed
11 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -73,7 +73,7 @@
/** Get the minimum interval at which the topic can be seen to be updated for this subscription */
#define ORBIOCGETINTERVAL _ORBIOC(16)
/** Check whether the topic is published, sets *(unsigned long *)arg to 1 if published, 0 otherwise */
#define ORBIOCISPUBLISHED _ORBIOC(17)
/** Check whether the topic is advertised, sets *(unsigned long *)arg to 1 if advertised, 0 otherwise */
#define ORBIOCISADVERTISED _ORBIOC(17)
#endif /* _DRV_UORB_H */
+1 -1
View File
@@ -136,7 +136,7 @@ void Heater::initialize_topics()
for (uint8_t x = 0; x < number_of_imus; x++) {
_sensor_accel_sub = uORB::Subscription{ORB_ID(sensor_accel), x};
if (!_sensor_accel_sub.published()) {
if (!_sensor_accel_sub.advertised()) {
continue;
}