aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-03 13:45:20 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-09 22:56:21 +0100
commitaeb8642117763956764374d5a774e46b311ea6e1 (patch)
tree26e6419f2743a060e389cfa83d575aae015ccb83
parent138058d547662a73f818fbb16f5c571f806ac68b (diff)
downloadpx4-firmware-aeb8642117763956764374d5a774e46b311ea6e1.tar.gz
px4-firmware-aeb8642117763956764374d5a774e46b311ea6e1.tar.bz2
px4-firmware-aeb8642117763956764374d5a774e46b311ea6e1.zip
GPS: Move to 0-based index
-rw-r--r--src/drivers/gps/gps.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp
index 8d7176791..f9595a734 100644
--- a/src/drivers/gps/gps.cpp
+++ b/src/drivers/gps/gps.cpp
@@ -168,7 +168,7 @@ GPS *g_dev;
GPS::GPS(const char *uart_path, bool fake_gps, bool enable_sat_info) :
- CDev("gps", GPS_DEVICE_PATH),
+ CDev("gps", GPS0_DEVICE_PATH),
_task_should_exit(false),
_healthy(false),
_mode_changed(false),
@@ -549,10 +549,10 @@ start(const char *uart_path, bool fake_gps, bool enable_sat_info)
goto fail;
/* set the poll rate to default, starts automatic data collection */
- fd = open(GPS_DEVICE_PATH, O_RDONLY);
+ fd = open(GPS0_DEVICE_PATH, O_RDONLY);
if (fd < 0) {
- errx(1, "open: %s\n", GPS_DEVICE_PATH);
+ errx(1, "open: %s\n", GPS0_DEVICE_PATH);
goto fail;
}
@@ -598,7 +598,7 @@ test()
void
reset()
{
- int fd = open(GPS_DEVICE_PATH, O_RDONLY);
+ int fd = open(GPS0_DEVICE_PATH, O_RDONLY);
if (fd < 0)
err(1, "failed ");