mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
Correct Pid if gDisplayProduct_pr=0
This commit is contained in:
3
hidpi.sh
3
hidpi.sh
@@ -159,6 +159,9 @@ function get_edid()
|
||||
fi
|
||||
gDisplayProduct_st=${gDisplayProductID_RAW:0:2}
|
||||
gDisplayProductID_reverse="${gDisplayProduct_pr}${gDisplayProduct_st}"
|
||||
if [[ ${gDisplayProduct_pr} == 0 ]]; then
|
||||
gDisplayProductID_reverse="${gDisplayProduct_st}"
|
||||
fi
|
||||
gDisplayProductID=$((0x$gDisplayProduct_pr$gDisplayProduct_st))
|
||||
|
||||
EDID=$gMonitor
|
||||
|
||||
Reference in New Issue
Block a user