Merge pull request #9579 from ascillato/patch-2

KNX: Fix Bug in Scenes
This commit is contained in:
Theo Arends 2020-10-19 18:43:24 +02:00 committed by GitHub
commit 4eb8be1e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ void KNX_CB_Action(message_t const &msg, void *arg)
} else if (chan->type == KNX_SCENE) { } else if (chan->type == KNX_SCENE) {
// VALUE // VALUE
uint8_t tempvar = knx.data_to_1byte_uint(msg.data); uint8_t tempvar = knx.data_to_1byte_uint(msg.data);
dtostrfd(tempvar,2,tempchar); dtostrfd(tempvar,0,tempchar);
} else { } else {
// VALUE // VALUE
float tempvar = knx.data_to_2byte_float(msg.data); float tempvar = knx.data_to_2byte_float(msg.data);