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

Function findSpiffsPartition

samples/Basic_Ota/app/application.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19LineBuffer<16> commandBuffer;
20
21Storage::Partition findSpiffsPartition(Storage::Partition appPart)
22{
23 String name = F("spiffs");
24 name += ota.getSlot(appPart);
25 auto part = Storage::findPartition(name);
26 if(!part) {
27 debug_w("Partition '%s' not found", name.c_str());
28 }
29 return part;
30}
31
32void upgradeCallback(Ota::Network::HttpUpgrader&, bool result)
33{

Callers 2

doUpgradeFunction · 0.85
initFunction · 0.85

Calls 4

getSlotMethod · 0.80
FFunction · 0.50
findPartitionFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected