SX126x icon indicating copy to clipboard operation
SX126x copied to clipboard

Timeout incorrect in SetTx function

Open Pete9008 opened this issue 2 years ago • 1 comments

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 avatar Dec 31 '22 19:12 Pete9008

@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); Screenshot 2024-05-02 223345

Chad signal with uint32_t tout = (uint32_t)(timeoutInMs * (1.0/0.015625)); Screenshot 2024-05-02 223243

Cale-Torino avatar May 02 '24 20:05 Cale-Torino