Skip to content

Commit

Permalink
cpustat: support h88k v3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unifreq committed Jul 23, 2024
1 parent b1a2b7d commit a668cfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion files/cpustat
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,17 @@ sub get_dc_voltage() {
my $iio_channel;
my $ret = 0;
my $fh;
if($board =~ m/Hlink H88K/) {
if($board =~ m/Hlink H88K-V3/) {
# 如果显示值与测量值偏差较大,可适当调整 $up_res 及 $down_res 的值
$up_res = 510;
$down_res = 27;
$iio_channel = 6;
$ret = "(Probably) 12";
} elsif($board =~ m/Hlink H88K V3\.1/) {
$up_res = 100;
$down_res = 8.2;
$iio_channel = 6;
$ret = "(Probably) 12";
} elsif($board =~ m/Hlink H6[689]K/) {
$up_res = 300;
$down_res = 27;
Expand Down

0 comments on commit a668cfc

Please sign in to comment.