F_Lock shift
This commit is contained in:
@@ -867,6 +867,7 @@ uint8_t Rssi2Y(uint16_t rssi)
|
|||||||
return DrawingEndY - Rssi2PX(rssi, 0, DrawingEndY);
|
return DrawingEndY - Rssi2PX(rssi, 0, DrawingEndY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_FEAT_F4HWN_SPECTRUM
|
||||||
static void DrawSpectrum()
|
static void DrawSpectrum()
|
||||||
{
|
{
|
||||||
uint8_t ox = 0;
|
uint8_t ox = 0;
|
||||||
@@ -884,6 +885,19 @@ static void DrawSpectrum()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static void DrawSpectrum()
|
||||||
|
{
|
||||||
|
for (uint8_t x = 0; x < 128; ++x)
|
||||||
|
{
|
||||||
|
uint16_t rssi = rssiHistory[x >> settings.stepsCount];
|
||||||
|
if (rssi != RSSI_MAX_VALUE)
|
||||||
|
{
|
||||||
|
DrawVLine(Rssi2Y(rssi), DrawingEndY, x, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void DrawStatus()
|
static void DrawStatus()
|
||||||
{
|
{
|
||||||
|
@@ -39,7 +39,6 @@ voxless() {
|
|||||||
ENABLE_FEAT_F4HWN_RESTORE_SCAN=0 \
|
ENABLE_FEAT_F4HWN_RESTORE_SCAN=0 \
|
||||||
ENABLE_FEAT_F4HWN_CHARGING_C=0 \
|
ENABLE_FEAT_F4HWN_CHARGING_C=0 \
|
||||||
ENABLE_FEAT_F4HWN_NARROWER=0 \
|
ENABLE_FEAT_F4HWN_NARROWER=0 \
|
||||||
ENABLE_FEAT_F4HWN_CONTRAST=0 \
|
|
||||||
TARGET=f4hwn.voxless \
|
TARGET=f4hwn.voxless \
|
||||||
&& cp f4hwn.voxless* compiled-firmware/"
|
&& cp f4hwn.voxless* compiled-firmware/"
|
||||||
}
|
}
|
||||||
|
6
main.c
6
main.c
@@ -139,12 +139,12 @@ void Main(void)
|
|||||||
gEeprom.KEY_LOCK = 0;
|
gEeprom.KEY_LOCK = 0;
|
||||||
SETTINGS_SaveSettings();
|
SETTINGS_SaveSettings();
|
||||||
#ifndef ENABLE_VOX
|
#ifndef ENABLE_VOX
|
||||||
gMenuCursor = 64; // move to hidden section, fix me if change... !!! Remove VOX and Mic Bar
|
gMenuCursor = 65; // move to hidden section, fix me if change... !!! Remove VOX and Mic Bar
|
||||||
#else
|
#else
|
||||||
#ifdef ENABLE_FEAT_F4HWN_SLEEP
|
#ifdef ENABLE_FEAT_F4HWN_SLEEP
|
||||||
gMenuCursor = 67; // move to hidden section, fix me if change... !!!
|
gMenuCursor = 68; // move to hidden section, fix me if change... !!!
|
||||||
#else
|
#else
|
||||||
gMenuCursor = 66; // move to hidden section, fix me if change... !!!
|
gMenuCursor = 67; // move to hidden section, fix me if change... !!!
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
gSubMenuSelection = gSetting_F_LOCK;
|
gSubMenuSelection = gSetting_F_LOCK;
|
||||||
|
Reference in New Issue
Block a user