We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c1529a commit bcdc7ccCopy full SHA for bcdc7cc
sdm630poller_serial.php
@@ -96,6 +96,7 @@ function hex2ascii($hex){
96
return($ascii);
97
}
98
function hex2ieee754($strHex){
99
+ $strHex = str_replace(" ", "", $strHex);
100
$bin = str_pad(base_convert($strHex, 16, 2), 32, "0", STR_PAD_LEFT);
101
$sign = $bin[0];
102
$exp = bindec(substr($bin, 1, 8)) - 127;
0 commit comments