Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/esp32-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: "atomvm/AtomVM"
ref: "release-0.6"
ref: "release-0.7"

- name: Checkout repo
uses: actions/checkout@v4
Expand Down
15 changes: 3 additions & 12 deletions dcs_lcd_display_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,12 @@ static void display_init_using_list(struct DCSLCDDriver *driver, term init_list)

static void do_update(Context *ctx, term display_list)
{
int proper;
int len = term_list_length(display_list, &proper);

BaseDisplayItem *items = malloc(sizeof(BaseDisplayItem) * len);
if (UNLIKELY(!items)) {
fprintf(stderr, "do_update: failed to alloc items\n");
BaseDisplayItem *items;
size_t len;
if (UNLIKELY(display_items_new_list(display_list, &items, &len, ctx) != DisplayItemsOk)) {
return;
}

term t = display_list;
for (int i = 0; i < len; i++) {
display_items_init_item(&items[i], term_get_list_head(t), ctx);
t = term_get_list_tail(t);
}

struct DCSLCDDriver *driver = DCS_LCD_DRIVER_FROM_CTX(ctx);
int screen_width = driver->screen.w;
int screen_height = driver->screen.h;
Expand Down
Loading
Loading