meshtimesync p2

This commit is contained in:
liquidraver committed 2026-07-03 19:30:53 +02:00
1 parent 14cb8c61f9
commit 46d27a0144
17 files changed
+262 -268

No files matched your search

+5 -4
View File
@@ -551,10 +551,11 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
if (ts == nullptr) {
strcpy(reply, "not available");
} else {
/* Remote replies ride in a ~160-byte packet buffer; only the
* local USB CLI (sender_timestamp == 0) gets the full evidence
* table. */
size_t cap = (sender_timestamp == 0) ? CLI_REPLY_SIZE : 158;
/* Only the local USB CLI (sender_timestamp == 0) gets the
* full evidence table; remote replies are truncated to the
* packet buffer. */
size_t cap = (sender_timestamp == 0) ? CLI_REPLY_SIZE
: CLI_REMOTE_REPLY_SIZE;
ts->formatStatus(reply, cap, getRTCClock()->getCurrentTime(),
(uint32_t)(k_uptime_get() / 1000),
_prefs->meshtimesync != 0);