mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 09:43:03 +00:00
Use the _init_zero macro correctly for HostMetrics (#6837)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user