Commit Graph

6 Commits

Author SHA1 Message Date
zach
850d57a8f2 Refactor float conversion in CommonCLI to use strtof for improved precision and add ftoa3 function for formatting floats with three decimal places in TxtDataHelpers to fix display issue in app and repeater config ui in web
REPO:
1. Flash a repeater
2. Connect over lora
3. Set bw to 42.7 KHZ

It will revert back due to converting a double to a float.

REPO2:
1.Flash Repeater
2. Apply float fix
3. Set to say 20.8
4. try to get value via app or web cli repeater config
It wil show blank because it doesnt return a good value. It would be something like 20.7999992 which the app and web apps dont like so the ftoa3 rounds it and returns a 3 decimal point float
2025-11-14 21:51:28 -07:00
Scott Powell
b31d3e7b5f * added StrHelper::fromHex() 2025-11-09 16:17:49 +11:00
Scott Powell
963290ea15 * repeater: various "region" CLI changes
* transport codes 0000 and FFFF reserved
2025-11-07 14:42:06 +11:00
Scott Powell
afd9cf2743 * CommonCLI: "get " commands 2025-02-27 18:02:47 +11:00
Scott Powell
fc4e5ed54c * new StrHelper::strzcpy() 2025-02-22 20:10:31 +11:00
Scott Powell
37f4ceff85 * strncpy() refactor/fix 2025-02-22 19:41:24 +11:00