Specific vaillant data type ttm (time table minutes) added.

This commit is contained in:
Roland Jax
2014-03-16 17:02:43 +01:00
parent 3e00a0dc80
commit d8cbc8343e
3 changed files with 18 additions and 0 deletions
+4
View File
@@ -1,6 +1,10 @@
ebus Daemon (ebusd) - ChangeLog
===============================
2014-03-16:
* Specific vaillant data type "ttm" (time table minutes) added.
(thx hendrikw / KNX Forum)
2014-02-21:
* fix crash: Create a local copy of the <host:port> string. (thx Hannes Gredler)
* Some cosmetic changes.
+4
View File
@@ -1,6 +1,10 @@
ebus Daemon (ebusd) - NEWS
==========================
2014-03-16:
* Specific vaillant data type "ttm" (time table minutes) added.
(thx hendrikw / KNX Forum)
2014-02-21:
* Improved ebus device handling to use tcp based device too.
+10
View File
@@ -352,6 +352,16 @@ eb_cmd_decode_value(int id, int elem, unsigned char *msg, char *buf)
goto on_error;
}
} else if (strncasecmp(com[id].elem[elem].d_type, "ttm", 3) == 0) {
if (p1 > 0) {
int hh, mm;
hh = msg[p1] / 6;
mm = msg[p1] % 6 * 10;
sprintf(buf, "%02d:%02d", hh, mm);
} else {
goto on_error;
}
} else if (strncasecmp(com[id].elem[elem].d_type, "hex", 3) == 0) {
if (p1 > 0) {
if (p2 > msg[0])