diff --git a/wpilibc/src/main/native/cpp/smartdashboard/SendableBuilderImpl.cpp b/wpilibc/src/main/native/cpp/smartdashboard/SendableBuilderImpl.cpp index 71a36613fa..ddd8ec0e07 100644 --- a/wpilibc/src/main/native/cpp/smartdashboard/SendableBuilderImpl.cpp +++ b/wpilibc/src/main/native/cpp/smartdashboard/SendableBuilderImpl.cpp @@ -26,7 +26,8 @@ void SendableBuilderImpl::PropertyImpl::Update(bool controllable, int64_t time) { if (controllable && sub && updateLocal) { updateLocal(sub); - } else if (pub && updateNetwork) { + } + if (pub && updateNetwork) { updateNetwork(pub, time); } } diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/smartdashboard/SendableBuilderImpl.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/smartdashboard/SendableBuilderImpl.java index 3c1e17c917..5a442f32a4 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/smartdashboard/SendableBuilderImpl.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/smartdashboard/SendableBuilderImpl.java @@ -82,7 +82,8 @@ public class SendableBuilderImpl implements NTSendableBuilder { void update(boolean controllable, long time) { if (controllable && m_sub != null && m_updateLocal != null) { m_updateLocal.accept(m_sub); - } else if (m_pub != null && m_updateNetwork != null) { + } + if (m_pub != null && m_updateNetwork != null) { m_updateNetwork.accept(m_pub, time); } }