From 35f27ca4150d51fcece1c4a887354d62124e7827 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Mon, 3 May 2021 19:36:22 +0200 Subject: [PATCH] rcommand get_time patch timestamp --- src/rcommand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 287d5c77..95a2733b 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -381,8 +381,9 @@ void get_batt(uint8_t val[]) { void get_time(uint8_t val[]) { ESP_LOGI(TAG, "Remote command: get time"); + time_t t = now(); payload.reset(); - payload.addTime(now()); + payload.addTime(t); payload.addByte(timeStatus() << 4 | timeSource); SendPayload(TIMEPORT); };