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

Function sizeToString

tests/HostTests/modules/SpiFlash.cpp:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42String sizeToString(SPIFlashSize size)
43{
44 switch(size) {
45 case SIZE_1MBIT:
46 return _F("1 MBit");
47 case SIZE_2MBIT:
48 return _F("2 MBit");
49 case SIZE_4MBIT:
50 return _F("4 MBit");
51 case SIZE_8MBIT:
52 return _F("8 MBit");
53 case SIZE_16MBIT:
54 return _F("16 MBit");
55 case SIZE_32MBIT:
56 return _F("32 MBit");
57 default:
58 return nullptr;
59 }
60}
61
62} // namespace
63

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected