KNX: Fixed Console Log

This commit is contained in:
Adrian Scillato 2020-04-11 03:10:48 -03:00 committed by GitHub
parent ac06abffe8
commit 85e6b522e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -556,8 +556,7 @@ void KNX_CB_Action(message_t const &msg, void *arg)
if (msg.data_len == 1) { if (msg.data_len == 1) {
// COMMAND // COMMAND
tempchar[0] = msg.data[0]; sprintf(tempchar,"%d",msg.data[0]);
tempchar[1] = '\0';
} else { } else {
// VALUE // VALUE
float tempvar = knx.data_to_2byte_float(msg.data); float tempvar = knx.data_to_2byte_float(msg.data);