mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-01-25 22:16:12 -05:00
Dump registers when transmitting
This commit is contained in:
parent
5531120e2f
commit
f7b2a60184
7
LoRa.cpp
7
LoRa.cpp
@ -215,6 +215,13 @@ int LoRaClass::beginPacket(int implicitHeader)
|
||||
|
||||
int LoRaClass::endPacket()
|
||||
{
|
||||
#elif LIBRARY_TYPE == LIBRARY_C
|
||||
std::cerr << "Entering transmit mode" << std::endl;
|
||||
for (uint8_t i = REG_OP_MODE ; i <= REG_PA_DAC; i++) {
|
||||
uint8_t val = readRegister(i);
|
||||
std::cerr << std::hex << "0x" << i << " 0x" << val << std::dec << std::endl;
|
||||
}
|
||||
#endif
|
||||
// put in TX mode
|
||||
writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_TX);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user