From aeb8642117763956764374d5a774e46b311ea6e1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 3 Feb 2015 13:45:20 +0100 Subject: [PATCH] GPS: Move to 0-based index --- src/drivers/gps/gps.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index 8d71767916..f9595a7343 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 ");