added OnOffAuto.
This commit is contained in:
@@ -271,6 +271,8 @@ int AQH_ValueModality_fromString(const char *s)
|
||||
return AQH_ValueModality_Light;
|
||||
else if (strcasecmp(s, "onOff")==0)
|
||||
return AQH_ValueModality_OnOff;
|
||||
else if (strcasecmp(s, "onOffAuto")==0)
|
||||
return AQH_ValueModality_OnOffAuto;
|
||||
}
|
||||
return AQH_ValueModality_Unknown;
|
||||
}
|
||||
@@ -291,6 +293,7 @@ const char *AQH_ValueModality_toString(int i)
|
||||
case AQH_ValueModality_Stats: return "stats";
|
||||
case AQH_ValueModality_Light: return "light";
|
||||
case AQH_ValueModality_OnOff: return "onOff";
|
||||
case AQH_ValueModality_OnOffAuto: return "onOffAuto";
|
||||
case AQH_ValueModality_Unknown:
|
||||
default: return "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user