mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilib] Update values on controllable sendables (#4667)
This commit is contained in:
@@ -26,7 +26,8 @@ void SendableBuilderImpl::PropertyImpl<Topic>::Update(bool controllable,
|
||||
int64_t time) {
|
||||
if (controllable && sub && updateLocal) {
|
||||
updateLocal(sub);
|
||||
} else if (pub && updateNetwork) {
|
||||
}
|
||||
if (pub && updateNetwork) {
|
||||
updateNetwork(pub, time);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user