mirror of
https://github.com/esphome/esphome.git
synced 2026-05-29 23:07:16 +08:00
[web_server] Fix wrong printf format specifier (#14836)
This commit is contained in:
@@ -415,7 +415,7 @@ void WebServer::setup() {
|
|||||||
this->set_interval(10000, [this]() {
|
this->set_interval(10000, [this]() {
|
||||||
char buf[32];
|
char buf[32];
|
||||||
auto uptime = static_cast<uint32_t>(millis_64() / 1000);
|
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);
|
this->events_.try_send_nodefer(buf, "ping", millis(), 30000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user