Xteink-X4-crosspoint-reader/src/network
V 330d415463 Refactor semantic version comparison for OTA updates (#216)
## Summary

* **What is the goal of this PR?** (e.g., Fixes a bug in the user
authentication module, Implements the new feature for
  file uploading.)

This PR refactors the semantic version comparison logic used during OTA
update checks.

Memory stats before : 
RAM:   [===       ]  30.8% (used 101068 bytes from 327680 bytes)
Flash: [========= ]  85.7% (used **5617830** bytes from 6553600 bytes)

Memory stats before : 
RAM:   [===       ]  30.8% (used 101068 bytes from 327680 bytes)
Flash: [========= ]  85.7% (used **5616870** bytes from 6553600 bytes)


* **What changes are included?**

Replaced std::string::substr() and std::stoi() based parsing with a
lightweight, heap-free approach.
Version parsing is now done in a single pass without creating temporary
std::string objects.
Behavior remains identical: versions are still compared as
MAJOR.MINOR.PATCH.

## Additional Context

`std::string::substr() ` creates a new string and performs heap
allocation

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks, specific areas to
focus on).
2026-01-15 17:37:42 -08:00
..
html Add support for uploading multiple epubs (#202) 2026-01-15 17:37:42 -08:00
CrossPointWebServer.cpp Small cleanups from https://github.com/juicecultus/crosspoint-reader-x4 2025-12-30 23:19:08 +11:00
CrossPointWebServer.h Add AP mode option for file transfers (#98) 2025-12-22 17:24:14 +11:00
OtaUpdater.cpp Refactor semantic version comparison for OTA updates (#216) 2026-01-15 17:37:42 -08:00
OtaUpdater.h Refactor semantic version comparison for OTA updates (#216) 2026-01-15 17:37:42 -08:00