rcommand get_time patch timestamp
This commit is contained in:
parent
0f50fe3e30
commit
35f27ca415
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user