aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/hmc5883/hmc5883.cpp
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-09-14 22:59:42 -0700
committerpx4dev <px4@purgatory.org>2012-09-14 22:59:42 -0700
commit22537447dbd1664492549e16e65bfe3294493bca (patch)
tree32393ed6e9762e1bb38d04c471d7a23c93701ef2 /apps/drivers/hmc5883/hmc5883.cpp
parenta3f21d914038f249e5e141b31410cc8554d94623 (diff)
downloadpx4-firmware-22537447dbd1664492549e16e65bfe3294493bca.tar.gz
px4-firmware-22537447dbd1664492549e16e65bfe3294493bca.tar.bz2
px4-firmware-22537447dbd1664492549e16e65bfe3294493bca.zip
Adjust to changes in the work queue API.
Diffstat (limited to 'apps/drivers/hmc5883/hmc5883.cpp')
-rw-r--r--apps/drivers/hmc5883/hmc5883.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/drivers/hmc5883/hmc5883.cpp b/apps/drivers/hmc5883/hmc5883.cpp
index da3b83777..c0a5f4049 100644
--- a/apps/drivers/hmc5883/hmc5883.cpp
+++ b/apps/drivers/hmc5883/hmc5883.cpp
@@ -527,13 +527,13 @@ HMC5883::start()
_oldest_report = _next_report = 0;
/* schedule a cycle to start things */
- work_queue(&_work, (worker_t)&HMC5883::cycle_trampoline, this, 1);
+ work_queue(HPWORK, &_work, (worker_t)&HMC5883::cycle_trampoline, this, 1);
}
void
HMC5883::stop()
{
- work_cancel(&_work);
+ work_cancel(HPWORK, &_work);
}
void
@@ -567,7 +567,8 @@ HMC5883::cycle()
if (_measure_ticks > USEC2TICK(HMC5883_CONVERSION_INTERVAL)) {
/* schedule a fresh cycle call when we are ready to measure again */
- work_queue(&_work,
+ work_queue(HPWORK,
+ &_work,
(worker_t)&HMC5883::cycle_trampoline,
this,
_measure_ticks - USEC2TICK(HMC5883_CONVERSION_INTERVAL));
@@ -584,7 +585,8 @@ HMC5883::cycle()
_collect_phase = true;
/* schedule a fresh cycle call when the measurement is done */
- work_queue(&_work,
+ work_queue(HPWORK,
+ &_work,
(worker_t)&HMC5883::cycle_trampoline,
this,
USEC2TICK(HMC5883_CONVERSION_INTERVAL));