Lowercase the keys in radios.json (#895)

This commit is contained in:
Tim Wilkinson 2023-07-08 22:04:23 -07:00 committed by GitHub
parent eaa5d2f72b
commit be9957183c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 649 additions and 567 deletions

File diff suppressed because it is too large Load Diff

View File

@ -62,7 +62,7 @@ function hardware.get_radio()
end
local radios = json.parse(f:read("*a"))
f:close()
radio_json = radios[hardware.get_board_id()]
radio_json = radios[hardware.get_board_id():lower()]
if radio_json and not radio_json.name then
radio_json.name = hardware.get_board_id()
end