From 3ccc6849ac11851589c04adbf834091a4d918a01 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 16 Oct 2012 00:12:48 +0200 Subject: [PATCH] Fixed stupid typo in GPS app --- apps/sdlog/sdlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sdlog/sdlog.c b/apps/sdlog/sdlog.c index 229e1bfef6..49210de3da 100644 --- a/apps/sdlog/sdlog.c +++ b/apps/sdlog/sdlog.c @@ -346,14 +346,14 @@ int sdlog_thread_main(int argc, char *argv[]) { /* --- GLOBAL POSITION --- */ /* subscribe to ORB for global position */ - subs.local_pos_sub = orb_subscribe(ORB_ID(vehicle_global_position)); + subs.global_pos_sub = orb_subscribe(ORB_ID(vehicle_global_position)); fds[fdsc_count].fd = subs.global_pos_sub; fds[fdsc_count].events = POLLIN; fdsc_count++; /* --- GPS POSITION --- */ /* subscribe to ORB for global position */ - subs.local_pos_sub = orb_subscribe(ORB_ID(vehicle_gps_position)); + subs.gps_pos_sub = orb_subscribe(ORB_ID(vehicle_gps_position)); fds[fdsc_count].fd = subs.gps_pos_sub; fds[fdsc_count].events = POLLIN; fdsc_count++;