Redundant code maybe free some bytes...

This commit is contained in:
Armel FAUVEAU
2024-06-28 22:22:50 +02:00
parent 3a61d18ac7
commit 3c2984cfd5
3 changed files with 26 additions and 3 deletions

View File

@@ -203,6 +203,30 @@ const uint8_t BITMAP_ScanList3[7] =
0b01111111 0b01111111
}; };
const uint8_t BITMAP_ScanList123[19] =
{
// 'All' symbol
0b01111111,
0b01111111,
0b01111011,
0b01000001,
0b01111111,
0b01111111,
0b01111111,
0b01111111,
0b01001101,
0b01010101,
0b01011011,
0b01111111,
0b01111111,
0b01111111,
0b01011101,
0b01010101,
0b01101011,
0b01111111,
0b01111111
};
const uint8_t BITMAP_ScanListAll[19] = const uint8_t BITMAP_ScanListAll[19] =
{ {
// 'All' symbol // 'All' symbol

View File

@@ -34,6 +34,7 @@ extern const uint8_t BITMAP_ScanList0[7];
extern const uint8_t BITMAP_ScanList1[7]; extern const uint8_t BITMAP_ScanList1[7];
extern const uint8_t BITMAP_ScanList2[7]; extern const uint8_t BITMAP_ScanList2[7];
extern const uint8_t BITMAP_ScanList3[7]; extern const uint8_t BITMAP_ScanList3[7];
extern const uint8_t BITMAP_ScanList123[19];
extern const uint8_t BITMAP_ScanListAll[19]; extern const uint8_t BITMAP_ScanListAll[19];
extern const uint8_t BITMAP_compand[6]; extern const uint8_t BITMAP_compand[6];

View File

@@ -110,9 +110,7 @@ void UI_DisplayStatus()
memcpy(line + 0, BITMAP_ScanList3, sizeof(BITMAP_ScanList3)); memcpy(line + 0, BITMAP_ScanList3, sizeof(BITMAP_ScanList3));
break; break;
case 4: case 4:
memcpy(line + 0, BITMAP_ScanList1, sizeof(BITMAP_ScanList1)); memcpy(line + 0, BITMAP_ScanList123, sizeof(BITMAP_ScanList123));
memcpy(line + 6, BITMAP_ScanList2, sizeof(BITMAP_ScanList2));
memcpy(line + 12, BITMAP_ScanList3, sizeof(BITMAP_ScanList3));
break; break;
case 5: case 5:
memcpy(line + 0, BITMAP_ScanListAll, sizeof(BITMAP_ScanListAll)); memcpy(line + 0, BITMAP_ScanListAll, sizeof(BITMAP_ScanListAll));