Skip to content

Commit bcdc7cc

Browse files
authored
Update sdm630poller_serial.php
1 parent 3c1529a commit bcdc7cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdm630poller_serial.php

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function hex2ascii($hex){
9696
return($ascii);
9797
}
9898
function hex2ieee754($strHex){
99+
$strHex = str_replace(" ", "", $strHex);
99100
$bin = str_pad(base_convert($strHex, 16, 2), 32, "0", STR_PAD_LEFT);
100101
$sign = $bin[0];
101102
$exp = bindec(substr($bin, 1, 8)) - 127;

0 commit comments

Comments
 (0)