Introduce FRSKY_RELEASE flag

This commit is contained in:
3djc
2019-04-19 14:21:05 +02:00
parent 501238af41
commit 179e291970
5 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
@@ -32,7 +32,7 @@ void drawSplash()
{
lcdClear();
lcdDraw1bitBitmap(0, 0, splash_lbm, 0, 0);
#if MENUS_LOCK == 1
if (readonly == false) {
lcdDrawFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID, ERASE|ROUND);
@@ -44,7 +44,7 @@ void drawSplash()
}
#endif
#if defined(SPLASH_FRSKY)
#if defined(FRSKY_RELEASE)
const unsigned char splashdata2[] = {
'S','F','S',0,
#include "bitmaps/128x64/splash_frsky.lbm"
+2 -2
View File
@@ -2,7 +2,7 @@
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
@@ -43,7 +43,7 @@ void drawSplash()
}
#endif
#if defined(SPLASH_FRSKY)
#if defined(FRSKY_RELEASE)
const unsigned char splashdata2[] = {
'S','F','S',0,
#include "bitmaps/212x64/splash_frsky.lbm"
@@ -58,7 +58,9 @@ void menuRadioPowerMeter(event_t event)
if (moduleSettings[g_moduleIdx].mode != MODULE_MODE_POWER_METER) {
memclear(&reusableBuffer.powerMeter, sizeof(reusableBuffer.powerMeter));
reusableBuffer.powerMeter.freq = 2400000000;
#if defined(FRSKY_RELEASE)
reusableBuffer.powerMeter.attn = 4;
#endif
moduleSettings[g_moduleIdx].mode = MODULE_MODE_POWER_METER;
}