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

Function toLongString

Sming/Components/Storage/src/Partition.cpp:97–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97String toLongString(Partition::Type type, uint8_t subType)
98{
99 switch(type) {
100 case Partition::Type::app:
101 if(auto v = longAppSubTypeStrings[Partition::SubType::App(subType)]) {
102 return F("App: ") + String(v);
103 }
104 break;
105 case Partition::Type::data:
106 if(auto v = longDataSubTypeStrings[Partition::SubType::Data(subType)]) {
107 return F("Data: ") + String(v);
108 }
109 break;
110
111 case Partition::Type::storage:
112 if(auto s = toLongString(Device::Type(subType))) {
113 return F("Storage: ") + s;
114 }
115 break;
116
117 default:;
118 // Unknown
119 }
120
121 return toString(type, subType);
122}
123
124namespace Storage
125{

Callers 1

longTypeStringMethod · 0.70

Calls 6

AppEnum · 0.85
DataEnum · 0.85
toStringFunction · 0.70
FFunction · 0.50
StringClass · 0.50
TypeEnum · 0.50

Tested by

no test coverage detected