Browse Source

Merge pull request #1871 from enricolorenzoni59/gps-sync-reply

`gps sync` reply: fill buffer with text
pull/1841/head
fdlamotte 3 months ago
committed by GitHub
parent
commit
06ab9f7f6b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      src/helpers/CommonCLI.cpp

3
src/helpers/CommonCLI.cpp

@ -717,6 +717,9 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
LocationProvider * l = _sensors->getLocationProvider();
if (l != NULL) {
l->syncTime();
strcpy(reply, "ok");
} else {
strcpy(reply, "gps provider not found");
}
} else if (memcmp(command, "gps setloc", 10) == 0) {
_prefs->node_lat = _sensors->node_lat;

Loading…
Cancel
Save