* ContactInfo, added gps_lat, gps_lon

* companion_radio: now also save gps_lat, gps_lon
* BaseChatMesh: now parses gps_lat, gps_lon out of Advertisement
This commit is contained in:
Scott Powell
2025-01-29 13:56:39 +11:00
parent 2e3d2d13b2
commit f46263a263
4 changed files with 26 additions and 7 deletions

View File

@@ -115,6 +115,7 @@ class MyMesh : public BaseChatMesh, ContactVisitor {
success = success && (file.read((uint8_t *) &c.out_path_len, 1) == 1);
success = success && (file.read((uint8_t *) &c.last_advert_timestamp, 4) == 4);
success = success && (file.read(c.out_path, 64) == 64);
c.gps_lat = c.gps_lon = 0; // not yet supported
if (!success) break; // EOF