summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/sx1276/sx1276.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral/libupm/src/sx1276/sx1276.cxx')
-rw-r--r--peripheral/libupm/src/sx1276/sx1276.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/peripheral/libupm/src/sx1276/sx1276.cxx b/peripheral/libupm/src/sx1276/sx1276.cxx
index de37c08..64a5ae3 100644
--- a/peripheral/libupm/src/sx1276/sx1276.cxx
+++ b/peripheral/libupm/src/sx1276/sx1276.cxx
@@ -33,7 +33,7 @@
#undef JAVACALLBACK
#endif
-#include "sx1276.hpp"
+#include "sx1276.h"
using namespace upm;
using namespace std;
@@ -167,7 +167,7 @@ SX1276::~SX1276()
uint8_t SX1276::readReg(uint8_t reg)
{
- uint8_t pkt[2] = {static_cast<uint8_t>(reg & 0x7f), 0};
+ uint8_t pkt[2] = {(reg & 0x7f), 0};
csOn();
if (m_spi.transfer(pkt, pkt, 2))
@@ -184,7 +184,7 @@ uint8_t SX1276::readReg(uint8_t reg)
bool SX1276::writeReg(uint8_t reg, uint8_t val)
{
- uint8_t pkt[2] = {static_cast<uint8_t>(reg | m_writeMode), val};
+ uint8_t pkt[2] = {reg | m_writeMode, val};
csOn();
if (m_spi.transfer(pkt, NULL, 2))