Add CL/OP in status line
This commit is contained in:
51
bitmaps.c
51
bitmaps.c
@@ -142,6 +142,24 @@ const uint8_t BITMAP_F_Key[6] =
|
||||
};
|
||||
|
||||
#ifdef ENABLE_VOX
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
const uint8_t BITMAP_VOX[12] =
|
||||
{ // "V"
|
||||
0b00000000,
|
||||
0b00011111,
|
||||
0b00100000,
|
||||
0b01000000,
|
||||
0b00100000,
|
||||
0b00011111,
|
||||
0b00000000,
|
||||
0b01100011,
|
||||
0b00010100,
|
||||
0b00001000,
|
||||
0b00010100,
|
||||
0b01100011
|
||||
};
|
||||
#else
|
||||
const uint8_t BITMAP_VOX[18] =
|
||||
{ // "VOX"
|
||||
0b00000000,
|
||||
@@ -164,8 +182,41 @@ const uint8_t BITMAP_F_Key[6] =
|
||||
0b01100011
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
const uint8_t BITMAP_PTT_ONE_PUSH[11] =
|
||||
{ // "OnePush"
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b00111110,
|
||||
0b00000000,
|
||||
0b01111110,
|
||||
0b00010001,
|
||||
0b00010001,
|
||||
0b00001110,
|
||||
0b00000000,
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_PTT_CLASSIC[11] =
|
||||
{ // "Classic"
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b00000000,
|
||||
0b00111111,
|
||||
0b01000000,
|
||||
0b01000000,
|
||||
0b01000000,
|
||||
0b00000000,
|
||||
};
|
||||
#endif
|
||||
|
||||
// 'XB' (cross-band/cross-VFO)
|
||||
const uint8_t BITMAP_XB[12] =
|
||||
{ // "XB"
|
||||
|
@@ -18,8 +18,17 @@ extern const uint8_t BITMAP_KeyLock[6];
|
||||
extern const uint8_t BITMAP_F_Key[6];
|
||||
|
||||
#ifdef ENABLE_VOX
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
extern const uint8_t BITMAP_VOX[12];
|
||||
#else
|
||||
extern const uint8_t BITMAP_VOX[18];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
extern const uint8_t BITMAP_PTT_ONE_PUSH[11];
|
||||
extern const uint8_t BITMAP_PTT_CLASSIC[11];
|
||||
#endif
|
||||
|
||||
extern const uint8_t BITMAP_XB[12];
|
||||
|
||||
|
14
ui/status.c
14
ui/status.c
@@ -129,6 +129,20 @@ void UI_DisplayStatus()
|
||||
x += sizeof(BITMAP_VOX) + 1;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
// PTT indicator
|
||||
if (gSetting_set_ptt) {
|
||||
memcpy(line + x, BITMAP_PTT_ONE_PUSH, sizeof(BITMAP_PTT_ONE_PUSH));
|
||||
x1 = x + sizeof(BITMAP_PTT_ONE_PUSH) + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(line + x, BITMAP_PTT_CLASSIC, sizeof(BITMAP_PTT_CLASSIC));
|
||||
x1 = x + sizeof(BITMAP_PTT_CLASSIC) + 1;
|
||||
}
|
||||
x += sizeof(BITMAP_PTT_CLASSIC) + 1;
|
||||
#endif
|
||||
|
||||
x = MAX(x1, 61u);
|
||||
|
||||
// KEY-LOCK indicator
|
||||
|
Reference in New Issue
Block a user