Update SX1278.cpp

This commit is contained in:
Jarno Lehtinen 2020-02-08 09:50:00 +02:00 committed by GitHub
parent e33ebe89cb
commit 68ff3df2f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();