Skip to content

Commit fef1445

Browse files
choose platform by screen resolution
1 parent 82ea15a commit fef1445

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

src/SCRIPTS/BF/radios.lua

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,14 @@ local supportedPlatforms = {
3333

3434
local supportedRadios =
3535
{
36-
["x3"] = supportedPlatforms.x7,
37-
["x7"] = supportedPlatforms.x7,
38-
["x7s"] = supportedPlatforms.x7,
39-
["t12"] = supportedPlatforms.x7,
40-
["xlite"] = supportedPlatforms.x7,
41-
["xlites"] = supportedPlatforms.x7,
42-
["x9lite"] = supportedPlatforms.x7,
43-
["x9d"] = supportedPlatforms.x9,
44-
["x9d+"] = supportedPlatforms.x9,
45-
["x9d+2019"] = supportedPlatforms.x9,
46-
["x9e"] = supportedPlatforms.x9,
47-
["x10"] = supportedPlatforms.horus,
48-
["x10express"] = supportedPlatforms.horus,
49-
["x12s"] = supportedPlatforms.horus,
50-
["NV14"] = supportedPlatforms.nv14,
51-
["t16"] = supportedPlatforms.horus,
36+
["128x64"] = supportedPlatforms.x7,
37+
["212x64"] = supportedPlatforms.x9,
38+
["480x272"] = supportedPlatforms.horus,
39+
["320x480"] = supportedPlatforms.nv14,
5240
}
5341

5442
local ver, rad, maj, min, rev = getVersion()
55-
local radio = supportedRadios[rad]
43+
local radio = supportedRadios[tostring(LCD_W) .. "x" .. tostring(LCD_H)]
5644

5745
if not radio then
5846
error("Radio not supported: "..rad)

0 commit comments

Comments
 (0)