MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / createPower

Function createPower

Devices/m5stack-sticks3/Source/devices/Power.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88std::shared_ptr<PowerDevice> createPower() {
89 auto* m5pm1 = device_find_by_name("m5pm1");
90 if (m5pm1 == nullptr) {
91 LOG_E(TAG, "m5pm1 device not found");
92 }
93 return std::make_shared<StickS3Power>(m5pm1);
94}

Callers 1

createDevicesFunction · 0.50

Calls 1

device_find_by_nameFunction · 0.85

Tested by

no test coverage detected