Skip to content

Commit 6e331f5

Browse files
committed
Tidy of supported radios
1 parent 1d5c6fd commit 6e331f5

File tree

9 files changed

+16
-20
lines changed

9 files changed

+16
-20
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/SCRIPTS/BF/radios.lua

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,37 @@ lcdResolution =
44
high = 1
55
}
66

7-
8-
local supportedRadios =
9-
{
10-
["x7"] =
7+
local supportedPlatforms = {
8+
x7 =
119
{
1210
templateHome = SCRIPT_HOME.."/X7/",
1311
preLoad = SCRIPT_HOME.."/X7/x7pre.lua",
1412
resolution = lcdResolution.low
1513
},
16-
["x9d"] =
17-
{
18-
templateHome = SCRIPT_HOME.."/X9/",
19-
preLoad = SCRIPT_HOME.."/X9/x9pre.lua",
20-
resolution = lcdResolution.low
21-
},
22-
["x9d+"] =
14+
x9 =
2315
{
2416
templateHome = SCRIPT_HOME.."/X9/",
2517
preLoad = SCRIPT_HOME.."/X9/x9pre.lua",
2618
resolution = lcdResolution.low
2719
},
28-
["x10"] =
20+
horus =
2921
{
30-
templateHome=SCRIPT_HOME.."/X12S/",
31-
preLoad=SCRIPT_HOME.."/X12S/x12spre.lua",
32-
resolution = lcdResolution.high
33-
},
34-
["x12s"] =
35-
{
36-
templateHome=SCRIPT_HOME.."/X12S/",
37-
preLoad=SCRIPT_HOME.."/X12S/x12spre.lua",
22+
templateHome=SCRIPT_HOME.."/HORUS/",
23+
preLoad=SCRIPT_HOME.."/HORUS/horuspre.lua",
3824
resolution = lcdResolution.high
3925
},
4026
}
4127

28+
local supportedRadios =
29+
{
30+
["x7"] = supportedPlatforms.x7,
31+
["x9d"] = supportedPlatforms.x9,
32+
["x9d+"] = supportedPlatforms.x9,
33+
["x9e"] = supportedPlatforms.x9,
34+
["x10"] = supportedPlatforms.horus,
35+
["x12s"] = supportedPlatforms.horus,
36+
}
37+
4238
local ver, rad, maj, min, rev = getVersion()
4339
local radio = supportedRadios[rad]
4440

0 commit comments

Comments
 (0)