fixed the gpio code
diff --git a/bbb_cape/src/bbb/gpi.h b/bbb_cape/src/bbb/gpi.h
index be41a11..0583f0b 100644
--- a/bbb_cape/src/bbb/gpi.h
+++ b/bbb_cape/src/bbb/gpi.h
@@ -1,21 +1,18 @@
#ifndef BBB_CAPE_SRC_BBB_GPI_H_
#define BBB_CAPE_SRC_BBB_GPI_H_
-#include "gpios.h"
-
-// Subclass of Pin for input pins.
+#include "bbb/gpios.h"
namespace bbb {
-class Gpi : public Pin {
+// Subclass of Pin for input pins.
+class Gpi : public GpioPin {
public:
- // See the base class for what these args mean.
Gpi(int bank, int pin);
// Read the current value of the pin.
- // Returns 1 if it reads high, 0 for low.
- // Returns -1 if fails to read the pin for some reason.
- int Read();
+ // Returns true if it's high and false if it's low.
+ bool Read();
};
} // namespace bbb