Tweak random() for native builds

This commit is contained in:
fvanroie 2022-04-12 03:11:39 +02:00
parent cbb98f7f4e
commit beee7f5a4a

View File

@ -211,7 +211,11 @@ void hasp_antiburn_cb(lv_task_t* task)
for(lv_coord_t y = 0; y < disp_drv->ver_res; y++) {
for(lv_coord_t x = 0; x < disp_drv->hor_res; x++) {
#ifdef ARDUINO
color[x].full = random(UINT16_MAX);
#else
color[x].full = random() * UINT16_MAX;
#endif
}
area.y1 = y;
area.y2 = y;