mirror of
https://github.com/esphome/esphome.git
synced 2026-05-24 01:37:15 +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]() {
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user