mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
Use the _init_zero macro correctly for HostMetrics (#6837)
This commit is contained in:
parent
5b312ab917
commit
61e4eb12e6
@ -69,8 +69,9 @@ meshtastic_MeshPacket *HostMetricsModule::allocReply()
|
||||
meshtastic_Telemetry HostMetricsModule::getHostMetrics()
|
||||
{
|
||||
std::string file_line;
|
||||
meshtastic_Telemetry t = meshtastic_HostMetrics_init_zero;
|
||||
meshtastic_Telemetry t = meshtastic_Telemetry_init_zero;
|
||||
t.which_variant = meshtastic_Telemetry_host_metrics_tag;
|
||||
t.variant.host_metrics = meshtastic_HostMetrics_init_zero;
|
||||
|
||||
if (access("/proc/uptime", R_OK) == 0) {
|
||||
std::ifstream proc_uptime("/proc/uptime");
|
||||
|
Loading…
Reference in New Issue
Block a user