From 0045d8bcc8d26c93e6c72a60446a2263d820caeb Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 14 Mar 2016 21:57:06 +0100 Subject: [PATCH] Dead code removed --- radio/src/gui/horus/view_telemetry.cpp | 43 -------------------------- 1 file changed, 43 deletions(-) delete mode 100644 radio/src/gui/horus/view_telemetry.cpp diff --git a/radio/src/gui/horus/view_telemetry.cpp b/radio/src/gui/horus/view_telemetry.cpp deleted file mode 100644 index 5806865b4..000000000 --- a/radio/src/gui/horus/view_telemetry.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) OpenTX - * - * Based on code named - * th9x - http://code.google.com/p/th9x - * er9x - http://code.google.com/p/er9x - * gruvin9x - http://code.google.com/p/gruvin9x - * - * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include "../../opentx.h" - -#define STATUS_BAR_Y (7*FH+1) -#define TELEM_2ND_COLUMN (11*10) - -void displayTelemetryScreen(int index, unsigned int evt) -{ -#if defined(LUA) - if (TELEMETRY_SCREEN_TYPE(index) == TELEMETRY_SCREEN_TYPE_SCRIPT) { - luaTask(evt, RUN_TELEM_FG_SCRIPT, true); - return; - } -#endif - - if (TELEMETRY_SCREEN_TYPE(index) == TELEMETRY_SCREEN_TYPE_NONE) { - return; - } -} - -NOINLINE uint8_t getRssiAlarmValue(uint8_t alarm) -{ - return (45 - 3*alarm + g_model.frsky.rssiAlarms[alarm].value); -}