Skip to content

Commit

Permalink
sensor: ping: Request DEVICE_INFORMATION if not initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jun 11, 2024
1 parent 01db114 commit 3ff0d36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sensor/ping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ Ping::Ping()
}
emit lostMessagesChanged();

if (!_commonVariables.deviceInformation.initialized) {
request(CommonId::DEVICE_INFORMATION);
}

request(Ping1dId::PCB_TEMPERATURE);
request(Ping1dId::PROCESSOR_TEMPERATURE);
request(Ping1dId::VOLTAGE_5);
Expand Down

0 comments on commit 3ff0d36

Please sign in to comment.