Skip to content

Commit

Permalink
Scrape together a few bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuantAldea authored and egzumer committed Dec 9, 2023
1 parent b6a49db commit cfc4763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,7 @@ void APP_RunSpectrum() {

RelaunchScan();

for (int i = 0; i < 128; ++i) {
rssiHistory[i] = 0;
}
memset(rssiHistory, 0, sizeof(rssiHistory));

isInitialized = true;

Expand Down
5 changes: 3 additions & 2 deletions ui/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
const uint8_t pattern = 1 << (y % 8);
if(black)
buffer[y/8][x] |= 1 << (y%8);
buffer[y/8][x] |= pattern;
else
buffer[y/8][x] &= ~(1 << (y%8));
buffer[y/8][x] &= ~pattern;
}

static void sort(int16_t *a, int16_t *b)
Expand Down

0 comments on commit cfc4763

Please sign in to comment.