summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/maxsonarez/maxsonarez.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral/libupm/src/maxsonarez/maxsonarez.cxx')
-rw-r--r--peripheral/libupm/src/maxsonarez/maxsonarez.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/peripheral/libupm/src/maxsonarez/maxsonarez.cxx b/peripheral/libupm/src/maxsonarez/maxsonarez.cxx
index d6974e7..5122466 100644
--- a/peripheral/libupm/src/maxsonarez/maxsonarez.cxx
+++ b/peripheral/libupm/src/maxsonarez/maxsonarez.cxx
@@ -26,7 +26,7 @@
#include <string>
#include <stdexcept>
-#include "maxsonarez.hpp"
+#include "maxsonarez.h"
using namespace std;
using namespace upm;
@@ -55,9 +55,6 @@ MAXSONAREZ::~MAXSONAREZ()
int MAXSONAREZ::inches()
{
int val = mraa_aio_read(m_aio);
- if (val == -1) {
- return -1;
- }
float volts = float(val) * (m_aref / m_aRes);
return int(volts / m_vI);