MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / alertFromString

Function alertFromString

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:44–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44Alert alertFromString(const std::string& s)
45{
46 if (s == "select")
47 {
48 return Alert::select;
49 }
50 else if (s == "lselect")
51 {
52 return Alert::lselect;
53 }
54 else
55 {
56 return Alert::none;
57 }
58}
59
60bool Sensor::hasOn() const
61{

Callers 2

TESTFunction · 0.85
getLastAlertMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68