2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +00:00

Ignore VPD checksum for now.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2153 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare 2003-12-10 07:35:33 +00:00
parent e8c33a6575
commit 0fe637fa14

View File

@ -3882,9 +3882,13 @@ sub vpd_bios_build_id
seek (MEM, -32, SEEK_CUR);
my $len;
if (substr($buf, 0, 5) eq "\xAA\x55VPD"
&& ord(substr($buf, 5, 1)) >= 0x30
&& unpack('%8C*', substr($buf, 0x0D, 0x30-0x0D)) == 0)
&& ord(substr($buf, 5, 1)) >= 0x30)
{
if (unpack('%8C*', substr($buf, 0x0D, 0x30-0x0D)) != 0)
{
printf " Bad VPD checksum (0x%02X)! Please report.\n",
ord(substr($buf, 0x2F, 1));
}
$bbid = substr($buf, 13, 9);
$bbid =~ s/[\x00 ]*$//; # right trim
$found++;