mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 22:41:21 +00:00
meshtimesync p2
This commit is contained in:
1 parent
14cb8c61f9
commit
46d27a0144
17 files changed
+262
-268
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user