diff options
Diffstat (limited to 'bcm4751_gpsd.c')
-rw-r--r-- | bcm4751_gpsd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bcm4751_gpsd.c b/bcm4751_gpsd.c index d14667c..4b88295 100644 --- a/bcm4751_gpsd.c +++ b/bcm4751_gpsd.c @@ -24,6 +24,7 @@ #include <termios.h> #include <errno.h> +#include <asm-generic/ioctls.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -285,6 +286,11 @@ int main(void) int fd = -1; int rc = -1; + printf("Turning the GPS off...\n"); + rc = sec_gps_power(0); + if(rc < 0) { + printf("Warning: Failed to turn the GPS off!\n"); + } printf("Turning the GPS on...\n"); rc = sec_gps_power(1); if(rc < 0) { |