Skip to content

Commit cfbd470

Browse files
committed
Set publish options for SmartIO mode publisher
1 parent 412d189 commit cfbd470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hal/src/main/native/systemcore/SmartIo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ int32_t SmartIo::InitializeMode(SmartIoMode mode) {
3232
auto channelString = std::to_string(channel);
3333
auto subTableString = "/io/" + channelString + "/";
3434

35-
modePublisher = inst.GetIntegerTopic(subTableString + "type").Publish();
35+
modePublisher =
36+
inst.GetIntegerTopic(subTableString + "type").Publish(options);
3637
getSubscriber =
3738
inst.GetIntegerTopic(subTableString + "valget").Subscribe(0, options);
3839
periodGetSubscriber =

0 commit comments

Comments
 (0)