mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-09 00:13:59 +00:00
Add definition of spi_buffer size
Add check cell and spi_buffer size
This commit is contained in:
parent
c92987c52e
commit
5ee23be06f
3 changed files with 9 additions and 2 deletions
4
plot.c
4
plot.c
|
|
@ -16,6 +16,10 @@ int16_t area_height = AREA_HEIGHT_NORMAL;
|
|||
// Depends from spi_buffer size, CELLWIDTH*CELLHEIGHT <= sizeof(spi_buffer)
|
||||
#define CELLWIDTH (64)
|
||||
#define CELLHEIGHT (32)
|
||||
// Check buffer size
|
||||
#if CELLWIDTH*CELLHEIGHT > SPI_BUFFER_SIZE
|
||||
#error "Too small spi_buffer size SPI_BUFFER_SIZE < CELLWIDTH*CELLHEIGH"
|
||||
#endif
|
||||
|
||||
// indicate dirty cells (not redraw if cell data not changed)
|
||||
#define MAX_MARKMAP_X ((320+CELLWIDTH-1)/CELLWIDTH)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue