aqhome: improved "write" module.

- write window status as string translated from value
- reduced code duplication
This commit is contained in:
Martin Preuss
2023-05-13 00:15:07 +02:00
parent 6a22fb9956
commit 9f32f206b3
3 changed files with 17 additions and 21 deletions

View File

@@ -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";