2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 23:09:26 +00:00

modulo 256

git-svn-id: https://svn.fhem.de/fhem/trunk@4819 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-02-06 10:03:12 +00:00
parent c22079964e
commit 230e23049b

View File

@ -3594,7 +3594,7 @@ sub CUL_HM_valvePosUpdt(@) {#update valve position periodically to please valve
$hash->{helper}{vd}{nextF} = $tn;
}
do {
$msgCnt = ($msgCnt + 1)%255;
$msgCnt = ($msgCnt + 1)%256;
$idl = $hash->{helper}{vd}{idl}+$msgCnt;
$lo = int(($idl*0x4e6d +12345)/0x10000)&0xff;
$hi = ($hash->{helper}{vd}{idh}+$idl*198)&0xff;