Merge pull request #1 from Tunas1337/solid-rssi-chart

[rssi_printer] Make RSSI chart "solid"
pull/16/head
Piotr Lewandowski (SQ9P) 2023-07-02 04:28:17 +02:00 zatwierdzone przez GitHub
commit 807313f6ad
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -41,4 +41,4 @@ message(STATUS
# "[c++ flags] ${CMAKE_CXX_FLAGS}\n"
# "[asm flags] ${CMAKE_ASM_FLAGS}\n"
# "[ld flags] ${CMAKE_EXE_LINKER_FLAGS}\n"
)
)

Wyświetl plik

@ -75,7 +75,9 @@ class CRssiPrinter
unsigned char u8Sub = (u8Rssi * 7) >> 7;
unsigned char u8PrintShift = (u8Sub > 7 ? 7 : u8Sub);
U8ScreenHistory[u8ChartPosition - ChartStartX] = (1 << u8PrintShift) & 0xFF;
// Turn the proper pixel on, and the ones below it on as well
// The code to turn just the correct pixel on is: U8ScreenHistory[u8ChartPosition - ChartStartX] = (1 << u8PrintShift) & 0xFF;
U8ScreenHistory[u8ChartPosition - ChartStartX] = ~(0xFF >> (7 - u8PrintShift));
if(u8ChartPosition + 4 < DisplayBuff.SizeX)
{