mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix serial parsing for some areca controller firmwares
git-svn-id: http://www.observium.org/svn/observer/trunk@1209 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -766,4 +766,15 @@ function formatCiscoHardware(&$device, $short = false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# from http://ditio.net/2008/11/04/php-string-to-hex-and-hex-to-string-functions/
|
||||
function hex2str($hex)
|
||||
{
|
||||
$string='';
|
||||
for ($i=0; $i < strlen($hex)-1; $i+=2)
|
||||
{
|
||||
$string .= chr(hexdec($hex[$i].$hex[$i+1]));
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user