From 68ff3df2f3f601c2f0b8b6ac338db7df1fdace05 Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Sat, 8 Feb 2020 09:50:00 +0200 Subject: [PATCH] Update SX1278.cpp --- src/modules/SX127x/SX1278.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/SX127x/SX1278.cpp b/src/modules/SX127x/SX1278.cpp index b2ab0b3c..d9352334 100644 --- a/src/modules/SX127x/SX1278.cpp +++ b/src/modules/SX127x/SX1278.cpp @@ -439,6 +439,10 @@ int16_t SX1278::setCRC(bool enableCRC) { } } +uint8_t SX1278::crcOnPayload() { + return(_mod->SPIgetRegValue(SX127X_REG_HOP_CHANNEL, 6, 6) >> 6); +} + int16_t SX1278::setBandwidthRaw(uint8_t newBandwidth) { // set mode to standby int16_t state = SX127x::standby();