2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 16:05:19 +00:00

76_SMAInverter.pm:sorry bug, Fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@26516 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
MadMax 2022-10-09 10:44:53 +00:00
parent 9cfa492d33
commit 0c2e67449e

View File

@ -1358,6 +1358,7 @@ sub SMAInverter_SMAcommand($$$$$) {
$inv_SPOT_ETOTAL = "-";
}
$inv_SPOT_ETODAY = "-";
if (length($data) >= 82) {
$inv_SPOT_ETODAY = unpack("V*", substr ($data, 78, 4));
@ -1398,6 +1399,7 @@ sub SMAInverter_SMAcommand($$$$$) {
$inv_BAT_LOADTOTAL = "-";
}
$inv_BAT_LOADTODAY = "-";
if (length($data) >= 82) {
$inv_BAT_LOADTODAY = unpack("V*", substr ($data, 78, 4));