[web_server] Fix wrong printf format specifier (#14836)

This commit is contained in:
KamilCuk
2026-03-16 22:30:31 +01:00
committed by GitHub
parent c3327d0b43
commit f81e04b036
+1 -1
View File
@@ -415,7 +415,7 @@ void WebServer::setup() {
this->set_interval(10000, [this]() {
char buf[32];
auto uptime = static_cast<uint32_t>(millis_64() / 1000);
buf_append_printf(buf, sizeof(buf), 0, "{\"uptime\":%u}", uptime);
buf_append_printf(buf, sizeof(buf), 0, "{\"uptime\":%" PRIu32 "}", uptime);
this->events_.try_send_nodefer(buf, "ping", millis(), 30000);
});
}