Skip to content

Commit

Permalink
rg_display: The dummy driver can now run (do nothing) without crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Sep 17, 2024
1 parent 25085bd commit 1209a7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/retro-go/drivers/display/dummy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
static uint16_t lcd_buffer[LCD_BUFFER_LENGTH];

static void lcd_init(void)
{
}
Expand All @@ -12,7 +14,7 @@ static void lcd_set_backlight(float percent)

static inline uint16_t *lcd_get_buffer(size_t length)
{
return (void *)0;
return lcd_buffer;
}

static inline void lcd_send_buffer(uint16_t *buffer, size_t length)
Expand Down

0 comments on commit 1209a7a

Please sign in to comment.