mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Tweak random() for native builds
This commit is contained in:
parent
cbb98f7f4e
commit
beee7f5a4a
@ -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 y = 0; y < disp_drv->ver_res; y++) {
|
||||||
for(lv_coord_t x = 0; x < disp_drv->hor_res; x++) {
|
for(lv_coord_t x = 0; x < disp_drv->hor_res; x++) {
|
||||||
|
#ifdef ARDUINO
|
||||||
color[x].full = random(UINT16_MAX);
|
color[x].full = random(UINT16_MAX);
|
||||||
|
#else
|
||||||
|
color[x].full = random() * UINT16_MAX;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
area.y1 = y;
|
area.y1 = y;
|
||||||
area.y2 = y;
|
area.y2 = y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user