MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / GetAsString

Method GetAsString

cpp/hal/sbc_version.cpp:52–64  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Convert the SBC Version to a printable string ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

50//
51//---------------------------------------------------------------------------
52string SBC_Version::GetAsString()
53{
54 switch (sbc_version) {
55 case sbc_version_type::sbc_raspberry_pi_1:
56 return str_raspberry_pi_1;
57 case sbc_version_type::sbc_raspberry_pi_2_3:
58 return str_raspberry_pi_2_3;
59 case sbc_version_type::sbc_raspberry_pi_4:
60 return str_raspberry_pi_4;
61 default:
62 return str_unknown_sbc;
63 }
64}
65
66SBC_Version::sbc_version_type SBC_Version::GetSbcVersion()
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected