Replies: 3 comments
|
I agree with @lyusupov that this is indeed a negligible difference in most real world use cases. The two proposed solutions also have significant downsides:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
The frequency may not be set quite correctly if we fall under the float (32bit) limitation
Function SX126x::setFrequencyRaw(float freq)
may not correctly calc divider due float (32 bit) limitation.
For example, I am want set frequency 868.825MHz, but with float, 868.825 is stored only approximately (as 868.825012).
A float has about 7 decimal digits of precision, while double has about 15–16 decimal digits:
So results of next two lines - differed:
Therefore, two solutions seem possible:
Additional info (please complete):
Heltec V4 (ESP-32-S3/SX1262)
Library version: 7.6.0
All reactions