Skip to content

Commit 49d69f2

Browse files
authored
Update micro_ros_arduino.h
1 parent 661d9b9 commit 49d69f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/micro_ros_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ static inline void set_microros_wifi_transports(char * ssid, char * pass, char *
150150
);
151151
}
152152

153-
static inline void set_microros_wifi_transports(char * agent_ip, uint agent_port){
153+
static inline int set_microros_wifi_transports(const char * agent_ip, const uint agent_port) {
154154

155155
static struct micro_ros_agent_locator locator;
156156
locator.address.fromString(agent_ip);
157157
locator.port = agent_port;
158158

159-
rmw_uros_set_custom_transport(
159+
return rmw_uros_set_custom_transport(
160160
false,
161161
(void *) &locator,
162162
arduino_wifi_transport_open,

0 commit comments

Comments
 (0)