We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915fb25 commit 32d35edCopy full SHA for 32d35ed
example_10/hardware/rrbot.cpp
@@ -198,7 +198,7 @@ hardware_interface::return_type RRBotSystemWithGPIOHardware::read(
198
set_state(
199
info_.gpios[0].name + "/" + info_.gpios[0].state_interfaces[1].name,
200
static_cast<float>(rand_r(&seed)));
201
- seed = time(NULL) + 2;
+ seed = static_cast<unsigned int>(time(NULL)) + 2;
202
203
info_.gpios[0].name + "/" + info_.gpios[0].state_interfaces[2].name,
204
0 commit comments