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); };