Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
63739635
Commit
63739635
authored
8 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
BMA180: Fix compilation
parent
13a81973
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/drivers/bma180/bma180.cpp
+5
-3
5 additions, 3 deletions
src/drivers/bma180/bma180.cpp
with
5 additions
and
3 deletions
src/drivers/bma180/bma180.cpp
+
5
−
3
View file @
63739635
...
...
@@ -65,6 +65,8 @@
#include
<drivers/drv_accel.h>
#include
<drivers/device/ringbuffer.h>
#define ACCEL_DEVICE_PATH "/dev/bma180"
/* oddly, ERROR is not defined for c++ */
#ifdef ERROR
...
...
@@ -147,7 +149,7 @@ private:
struct
hrt_call
_call
;
unsigned
_call_interval
;
RingBuffer
*
_reports
;
ringbuffer
::
RingBuffer
*
_reports
;
struct
accel_calibration_s
_accel_scale
;
float
_accel_range_scale
;
...
...
@@ -281,7 +283,7 @@ BMA180::init()
}
/* allocate basic report buffers */
_reports
=
new
RingBuffer
(
2
,
sizeof
(
accel_report
));
_reports
=
new
ringbuffer
::
RingBuffer
(
2
,
sizeof
(
accel_report
));
if
(
_reports
==
nullptr
)
{
goto
out
;
...
...
@@ -788,7 +790,7 @@ start()
}
/* create the driver */
g_dev
=
new
BMA180
(
1
/* XXX magic number */
,
(
spi_dev_e
)
PX4_SPIDEV_
ACCEL
);
g_dev
=
new
BMA180
(
1
/* XXX magic number */
,
(
spi_dev_e
)
PX4_SPIDEV_
BMA
);
if
(
g_dev
==
nullptr
)
{
goto
fail
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment