[rssi_printer] Make RSSI chart "solid"

pull/1/head
Andrej Antunovikj 2023-07-02 03:10:23 +02:00
rodzic fd362283ff
commit 24e5e45a64
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)
{