123
Diff: sx127x_fsk.cpp
- Revision:
- 25:fa867fb9d2f6
- Parent:
- 24:cad6e7ce6928
- Child:
- 26:4876e515ff4c
--- a/sx127x_fsk.cpp Thu Oct 22 01:25:27 2015 +0000 +++ b/sx127x_fsk.cpp Thu Oct 22 01:27:18 2015 +0000 @@ -68,10 +68,10 @@ m_xcvr.write_reg(REG_FSK_SYNCCONFIG, RegSyncConfig.octet); } - fsk.RegPreambleDetect.bits.PreambleDetectorOn = 1; - fsk.RegPreambleDetect.bits.PreambleDetectorSize = 1; - fsk.RegPreambleDetect.bits.PreambleDetectorTol = 10; - radio.write_reg(REG_FSK_PREAMBLEDETECT, fsk.RegPreambleDetect.octet); + RegPreambleDetect.bits.PreambleDetectorOn = 1; + RegPreambleDetect.bits.PreambleDetectorSize = 1; + RegPreambleDetect.bits.PreambleDetectorTol = 10; + m_xcvr.write_reg(REG_FSK_PREAMBLEDETECT, RegPreambleDetect.octet); m_xcvr.set_opmode(RF_OPMODE_STANDBY); }