MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / discover

Method discover

OpenHD/ohd_common/src/openhd_profile.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42OHDProfile DProfile::discover(bool is_air) {
43 openhd::log::get_default()->debug("Profile:[{}]", is_air ? "AIR" : "GND");
44 // We read the unit id from the persistent storage, later write it to the tmp
45 // storage json
46 const auto unit_id = openhd::getOrCreateUnitId();
47 return OHDProfile(is_air, unit_id);
48}

Callers

nothing calls this directly

Calls 2

OHDProfileClass · 0.85
debugMethod · 0.80

Tested by

no test coverage detected