NTP_SendRequest: Unable to send message - retry quickly after reboot

This commit is contained in:
openshwprojects
2023-04-25 11:34:04 +02:00
parent d64253c47b
commit 6e22209ee4
12 changed files with 19 additions and 20 deletions

View File

@ -819,7 +819,7 @@ static int http_rest_post_logconfig(http_request_t* request) {
static int http_rest_get_info(http_request_t* request) {
char macstr[3 * 6 + 1];
http_setup(request, httpMimeTypeJson);
hprintf255(request, "{\"uptime_s\":%d,", Time_getUpTimeSeconds());
hprintf255(request, "{\"uptime_s\":%d,", g_secondsElapsed);
hprintf255(request, "\"build\":\"%s\",", g_build_str);
hprintf255(request, "\"ip\":\"%s\",", HAL_GetMyIPString());
hprintf255(request, "\"mac\":\"%s\",", HAL_GetMACStr(macstr));