Skip to content

Commit a17b905

Browse files
bperseghettijgoppert
authored andcommitted
Fix ZROS topic echo.
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
1 parent 4f419b9 commit a17b905

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/synapse/topic/src/synapse_topic.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,11 @@ static int topic_echo(const struct shell* sh, struct zros_topic* topic, void* ms
179179
zros_topic_get_name(topic, name, sizeof(name));
180180
if (rc != 0) {
181181
LOG_WRN("%s not published.", name);
182-
return -1;
182+
keep_running=false;
183183
} else {
184184
if (!zros_sub_update_available(&sub)) {
185185
LOG_WRN("%s no update available.", name);
186-
shell_set_bypass(sh, NULL);
187-
return -1;
186+
keep_running=false;
188187
} else {
189188
zros_sub_update(&sub);
190189
echo(buf, sizeof(buf), msg);

0 commit comments

Comments
 (0)