File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/api/controllers/robot_window_html Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99int main (int argc , char * * argv ) {
1010 ts_setup (argv [0 ]);
1111
12- const char * configure_message ;
1312 for (;;) { // receive message sent by the robot window.
1413 wb_robot_step (TIME_STEP );
15- if ((configure_message = wb_robot_wwi_receive_text ())) {
14+ const char * configure_message = wb_robot_wwi_receive_text ();
15+ if (configure_message ) {
1616 if (strcmp (configure_message , "configure" ) == 0 ) {
1717 wb_robot_wwi_send_text ("test wwi functions from robot_window_html controller." );
1818 break ;
@@ -21,10 +21,10 @@ int main(int argc, char **argv) {
2121 }
2222 }
2323
24- const char * test_message ;
2524 for (;;) { // receive message sent by Webots.
2625 wb_robot_step (TIME_STEP );
27- if ((test_message = wb_robot_wwi_receive_text ())) {
26+ const char * test_message = wb_robot_wwi_receive_text ();
27+ if (test_message ) {
2828 if (strcmp (test_message , "Answer: test wwi functions from robot_window_html controller." ) == 0 )
2929 break ;
3030 else
You can’t perform that action at this time.
0 commit comments