Skip to content

Commit

Permalink
[ArDrone] Extra Safety
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Sep 1, 2013
1 parent 21df20c commit 6d33e85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/airborne/boards/ardrone/gpio_ardrone.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* ardrone GPIO driver
*/

#ifdef ARDRONE2_RAW

#include <fcntl.h> /* File control definitions */
#include <errno.h> /* Error number definitions */
#include <sys/ioctl.h>
Expand Down Expand Up @@ -125,3 +127,5 @@ uint16_t gpio_get(uint32_t port, uint16_t pin)
ioctl(gpiofp, GPIO_READ, &data);
return data.value;
}

#endif

0 comments on commit 6d33e85

Please sign in to comment.