supercell-wx/wxdata/source/scwx/common/vcp.cpp
2021-12-22 16:36:04 -06:00

32 lines
521 B
C++

#include <scwx/common/vcp.hpp>
#include <unordered_map>
namespace scwx
{
namespace common
{
static const std::string CLEAR_AIR_MODE = "Clear Air Mode";
static const std::string PRECIPITATION_MODE = "Precipitation Mode";
std::string GetVcpDescription(uint16_t vcp)
{
switch (vcp)
{
case 31:
case 32:
case 35: return CLEAR_AIR_MODE;
case 12:
case 112:
case 121:
case 212:
case 215: return PRECIPITATION_MODE;
default: return "?";
}
}
} // namespace common
} // namespace scwx