2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

00_KM271.pm: fix datetime day setting (Forum #56681)

git-svn-id: https://svn.fhem.de/fhem/trunk@25972 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-04-16 10:39:48 +00:00
parent bf946b5b0c
commit df5684a575

View File

@ -636,7 +636,7 @@ KM271_Set($@)
$val = sprintf("%02x%02x%02x%02x%02x%02x", $val = sprintf("%02x%02x%02x%02x%02x%02x",
$lt[0], $lt[1], $lt[2], # Ignoring DST and Radio-Clock $lt[0], $lt[1], $lt[2], # Ignoring DST and Radio-Clock
$lt[3], $lt[3],
($lt[4]+1) + (($lt[6] ? $lt[6] : 7) << 4), ($lt[4]+1) + ((($lt[6]+6) % 7)<<4), # WDay: 0/Mon..6/Sun
$lt[5]); $lt[5]);
} }
push @{$hash->{SENDBUFFER}}, sprintf($cmd, $val, $val); push @{$hash->{SENDBUFFER}}, sprintf($cmd, $val, $val);