aqhome: improved "write" module.
- write window status as string translated from value - reduced code duplication
This commit is contained in:
@@ -73,7 +73,7 @@ const char *AQH_Value2Msg_GetValueTypeName(const GWEN_MSG *msg)
|
||||
switch(t) {
|
||||
case AQH_MSG_VALUE2_TYPE_TEMP: return "temperature";
|
||||
case AQH_MSG_VALUE2_TYPE_HUMIDITY: return "humidity";
|
||||
case AQH_MSG_VALUE2_TYPE_DOOR: return "door/window";
|
||||
case AQH_MSG_VALUE2_TYPE_DOOR: return "door_window";
|
||||
default: break;
|
||||
}
|
||||
return "unknown";
|
||||
|
||||
Reference in New Issue
Block a user