Skip to content

Commit

Permalink
script: use "display" instead of "value" in debug output
Browse files Browse the repository at this point in the history
"value" is not used or defined in either device's lua config.
Instead, use "display" for the debug output string.

Fixes a coredump when entering gamescope-session on ROG Ally.
  • Loading branch information
matte-schwartz authored and misyltoad committed Oct 8, 2024
1 parent 8c7a9f9 commit 38e9074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/00-gamescope/displays/asus.rogally.lcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ gamescope.config.known_displays.rogally_lcd = {
-- ROG Ally + ROG Ally X.
matches = function(display)
if display.vendor == "TMX" and display.model == "TL070FVXS01-0" and display.product == 0x0002 then
debug("[rogally_lcd] Matched vendor: "..value.vendor.." model: "..value.model.." product:"..value.product)
debug("[rogally_lcd] Matched vendor: "..display.vendor.." model: "..display.model.." product:"..display.product)
return 5000
end
return -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gamescope.config.known_displays.steamdeck_deckhd_lcd = {
end,
matches = function(display)
if display.vendor == "DHD" and display.model == "DeckHD-1200p" and display.product == 0x4001 then
debug("[steamdeck_deckhd_lcd] Matched vendor: "..value.vendor.." model: "..value.model.." product:"..value.product)
debug("[steamdeck_deckhd_lcd] Matched vendor: "..display.vendor.." model: "..display.model.." product:"..display.product)
return 5000
end

Expand Down

0 comments on commit 38e9074

Please sign in to comment.