Browse Source

BMA180 does not publish if disabled

sbg
Lorenz Meier 11 years ago
parent
commit
c7e2841baa
  1. 3
      src/drivers/bma180/bma180.cpp

3
src/drivers/bma180/bma180.cpp

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
* Copyright (c) 2012-2014 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -723,6 +723,7 @@ BMA180::measure() @@ -723,6 +723,7 @@ BMA180::measure()
poll_notify(POLLIN);
/* publish for subscribers */
if !(_pub_blocked)
orb_publish(ORB_ID(sensor_accel), _accel_topic, &report);
/* stop the perf counter */

Loading…
Cancel
Save