BigW Consortium Gitlab

Commit 60a9fb9f by Thong Nguyen

ws_eink: Update to support sleep mode

Add callinng init in ws_eink_display and sleep after displaying
parent 734c03ea
......@@ -341,11 +341,21 @@ static int ws_eink_update_display(struct ws_eink_fb_par *par)
int ret = 0;
u8 *vmem = par->info->screen_base;
u8 *ssbuf = par->ssbuf;
ret = int_lut(par, lut_partial_update, ARRAY_SIZE(lut_partial_update));
if (ret)
return ret;
memcpy(&ssbuf, &vmem, sizeof(vmem));
ret = set_frame_memory(par, ssbuf);
if (ret)
return ret;
ret = display_frame(par);
if (ret)
return ret;
ret = ws_eink_sleep(par);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment