From c65005e5a6339fbf3fd3aad894e0cd0cfb70e5bc Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 31 Oct 2022 11:04:44 +0100 Subject: [PATCH] add more bus-ids #673 --- interface/src/project/SettingsApplication.tsx | 13 ++++++++----- src/console.cpp | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/interface/src/project/SettingsApplication.tsx b/interface/src/project/SettingsApplication.tsx index 72ebb7a84..6a1dd3d32 100644 --- a/interface/src/project/SettingsApplication.tsx +++ b/interface/src/project/SettingsApplication.tsx @@ -311,12 +311,17 @@ const SettingsApplication: FC = () => { margin="normal" select > + Terminal (0x0A) Service Key (0x0B) Modem (0x0D) - Terminal (0x0A) Converter (0x0E) Time Module (0x0F) - Alarm Module (0x12) + Gateway 1 (0x48) + Gateway 2 (0x49) + Gateway 3 (0x4A) + Gateway 4 (0x4B) + Gateway 5 (0x4C) + Gateway 7 (0x4D) @@ -344,9 +349,7 @@ const SettingsApplication: FC = () => { Nederlands (NL) Svenska (SE) Polski (PL) - - Norsk (NO) - + Norsk (NO) {data.led_gpio !== 0 && ( diff --git a/src/console.cpp b/src/console.cpp index 1cba1e74d..b9a3eaa46 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -151,11 +151,11 @@ void EMSESPShell::add_console_commands() { }, "local"); } else { - shell.println("Must be 0B, 0D, 0A, 0F or 12"); + shell.println("Must be 0B, 0D, 0A, 0E, 0F, or 48 - 4D"); } }, [](Shell & shell __attribute__((unused)), const std::vector & arguments __attribute__((unused))) -> const std::vector { - return std::vector{"0B", "0D", "0A", "0F", "12"}; + return std::vector{"0B", "0D", "0A", "0E", "0F", "48", "49", "4A", "4B", "4C", "4D"}; }); commands->add_command(ShellContext::MAIN,