mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
Scrape together a few bytes
This commit is contained in:
parent
b6a49db31d
commit
cfc4763dd1
@ -1183,9 +1183,7 @@ void APP_RunSpectrum() {
|
|||||||
|
|
||||||
RelaunchScan();
|
RelaunchScan();
|
||||||
|
|
||||||
for (int i = 0; i < 128; ++i) {
|
memset(rssiHistory, 0, sizeof(rssiHistory));
|
||||||
rssiHistory[i] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
|
|
||||||
|
@ -184,10 +184,11 @@ void UI_DisplayFrequency(const char *string, uint8_t X, uint8_t Y, bool center)
|
|||||||
|
|
||||||
void UI_DrawPixelBuffer(uint8_t (*buffer)[128], uint8_t x, uint8_t y, bool black)
|
void UI_DrawPixelBuffer(uint8_t (*buffer)[128], uint8_t x, uint8_t y, bool black)
|
||||||
{
|
{
|
||||||
|
const uint8_t pattern = 1 << (y % 8);
|
||||||
if(black)
|
if(black)
|
||||||
buffer[y/8][x] |= 1 << (y%8);
|
buffer[y/8][x] |= pattern;
|
||||||
else
|
else
|
||||||
buffer[y/8][x] &= ~(1 << (y%8));
|
buffer[y/8][x] &= ~pattern;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sort(int16_t *a, int16_t *b)
|
static void sort(int16_t *a, int16_t *b)
|
||||||
|
Loading…
Reference in New Issue
Block a user