Specific vaillant data type ttm (time table minutes) added.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user