Skip to content

Commit 06ab9f7

Browse files
authored
Merge pull request meshcore-dev#1871 from enricolorenzoni59/gps-sync-reply
`gps sync` reply: fill buffer with text
2 parents eee42c5 + 8ad17d1 commit 06ab9f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/helpers/CommonCLI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
717717
LocationProvider * l = _sensors->getLocationProvider();
718718
if (l != NULL) {
719719
l->syncTime();
720+
strcpy(reply, "ok");
721+
} else {
722+
strcpy(reply, "gps provider not found");
720723
}
721724
} else if (memcmp(command, "gps setloc", 10) == 0) {
722725
_prefs->node_lat = _sensors->node_lat;

0 commit comments

Comments
 (0)