mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 04:06:47 +00:00
Fix rand for Windows
This commit is contained in:
parent
43651ca2db
commit
b85ca9c654
@ -219,7 +219,9 @@ 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
|
||||
#if defined(WINDOWS) || defined(POSIX)
|
||||
color[x].full = rand() * UINT16_MAX;
|
||||
#elif defined(ARDUINO)
|
||||
color[x].full = random(UINT16_MAX);
|
||||
#else
|
||||
color[x].full = random() * UINT16_MAX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user