Compilation fixes
This commit is contained in:
@@ -40,7 +40,7 @@ display_t displayBuf[DISPLAY_BUF_SIZE];
|
||||
|
||||
void lcd_clear()
|
||||
{
|
||||
memset(displayBuf, 0, DISPLAY_BUFER_SIZE);
|
||||
memset(displayBuf, 0, DISPLAY_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
coord_t lcdLastPos;
|
||||
|
||||
@@ -144,7 +144,7 @@ extern display_t displayBuf[DISPLAY_BUF_SIZE];
|
||||
extern coord_t lcdLastPos;
|
||||
extern coord_t lcdNextPos;
|
||||
|
||||
#define DISPLAY_BUFER_SIZE (sizeof(display_t)*DISPLAY_BUF_SIZE)
|
||||
#define DISPLAY_BUFFER_SIZE (sizeof(display_t)*DISPLAY_BUF_SIZE)
|
||||
#define DISPLAY_END (displayBuf + DISPLAY_BUF_SIZE)
|
||||
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ inline bool lcdIsPointOutside(coord_t x, coord_t y)
|
||||
|
||||
void lcd_clear()
|
||||
{
|
||||
memset(displayBuf, 0, DISPLAY_BUFER_SIZE);
|
||||
memset(displayBuf, 0, DISPLAY_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
coord_t lcdLastPos;
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
extern coord_t lcdLastPos;
|
||||
extern coord_t lcdNextPos;
|
||||
|
||||
#define DISPLAY_BUFER_SIZE (sizeof(display_t)*DISPLAY_BUF_SIZE)
|
||||
#define DISPLAY_BUFFER_SIZE (sizeof(display_t)*DISPLAY_BUF_SIZE)
|
||||
#define DISPLAY_END (displayBuf + DISPLAY_BUF_SIZE)
|
||||
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user