summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/grovegsr/grovegsr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral/libupm/src/grovegsr/grovegsr.cxx')
-rw-r--r--peripheral/libupm/src/grovegsr/grovegsr.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/peripheral/libupm/src/grovegsr/grovegsr.cxx b/peripheral/libupm/src/grovegsr/grovegsr.cxx
index 17b19c5..0d7669d 100644
--- a/peripheral/libupm/src/grovegsr/grovegsr.cxx
+++ b/peripheral/libupm/src/grovegsr/grovegsr.cxx
@@ -26,7 +26,7 @@
#include <string>
#include <stdexcept>
-#include "grovegsr.hpp"
+#include "grovegsr.h"
using namespace upm;
using namespace std;
@@ -54,8 +54,6 @@ void GroveGSR::calibrate()
for(int i=0; i<500; i++)
{
val = mraa_aio_read(m_aio);
- if (val != -1) throw std::runtime_error(std::string(__FUNCTION__) +
- ": Failed to do an aio read.");
sum += val;
usleep(5000);
}