avr, aqhome: added modality MOTION.
This commit is contained in:
@@ -259,6 +259,8 @@ int AQH_ValueModality_fromString(const char *s)
|
||||
return AQH_ValueModality_RGB;
|
||||
else if (strcasecmp(s, "rgbw")==0)
|
||||
return AQH_ValueModality_RGBW;
|
||||
else if (strcasecmp(s, "motion")==0)
|
||||
return AQH_ValueModality_Motion;
|
||||
}
|
||||
return AQH_ValueModality_Unknown;
|
||||
}
|
||||
@@ -273,6 +275,7 @@ const char *AQH_ValueModality_toString(int i)
|
||||
case AQH_ValueModality_Door: return "door";
|
||||
case AQH_ValueModality_RGB: return "rgb";
|
||||
case AQH_ValueModality_RGBW: return "rgbw";
|
||||
case AQH_ValueModality_Motion: return "motion";
|
||||
case AQH_ValueModality_Unknown:
|
||||
default: return "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user