MCPcopy Create free account
hub / github.com/SmingHub/Sming / findPartition

Function findPartition

Sming/Components/Storage/src/Storage.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Partition findPartition(const String& name)
64{
65 for(auto& dev : getDevices()) {
66 auto part = dev.partitions().find(name);
67 if(part) {
68 return part;
69 }
70 }
71
72 return Partition{};
73}
74
75} // namespace Storage

Callers 13

listPartitionsFunction · 0.70
findSpiffsPartitionFunction · 0.50
listSpiffsPartitionsFunction · 0.50
printPartFunction · 0.50
initFunction · 0.50
copySomeFilesFunction · 0.50
cycleFlashMethod · 0.50
listPartitionsMethod · 0.50
executeMethod · 0.50
user_pre_initFunction · 0.50
cyw43_storage_initFunction · 0.50

Calls 2

getDevicesFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected