SX126x
SX126x copied to clipboard
Timeout incorrect in SetTx function
The Timeout is incorrectly calculated in SetTx meaning that the transmission fails on longer or slow messages, see https://github.com/tinytronix/SX126x/commit/5f63e8ae68d7894fda345fe851b451738495783f for details. Many thanks.
@Pete9008
1000% correct I was getting very low power output... wasted a lot of time almost went to another library.
Then after changing the time to uint32_t tout = (uint32_t)(timeoutInMs * (1.0/0.015625));
all of a sudden everything worked as intended.
Here's some images for visual aid:
Wimpy signal with uint32_t tout = (uint32_t)(timeoutInMs * 0.015625);
Chad signal with uint32_t tout = (uint32_t)(timeoutInMs * (1.0/0.015625));