Skip to content

Commit

Permalink
fixed function names
Browse files Browse the repository at this point in the history
  • Loading branch information
js802025 committed Jul 25, 2024
1 parent 1e8d64c commit e4fbaf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/java/org/frcforftc/networktables/NT4Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void onMessage(WebSocket conn, ByteBuffer message) {
} else {
if (m_publisherUIDSMap.containsKey(decodedMessage.id)) {
NetworkTablesEntry entry = m_publisherUIDSMap.get(decodedMessage.id);
entry.setValue(new NetworkTablesValue(decodedMessage.dataValue, NetworkTablesValueType.getFromId(decodedMessage.dataType)));
entry.update(new NetworkTablesValue(decodedMessage.dataValue, NetworkTablesValueType.getFromId(decodedMessage.dataType)));
for (Set<WebSocket> subscribers : m_clientSubscriptions.values()) {
broadcast(encodeNT4Message(System.currentTimeMillis(), entry.id, decodedMessage.id, decodedMessage.dataType, decodedMessage.dataValue), subscribers);
}
Expand Down Expand Up @@ -339,7 +339,7 @@ public NetworkTablesMessage decodeNT4Message(ByteBuffer buffer) throws IOExcepti
NetworkTablesEntry entry = m_publisherUIDSMap.get((int) topicID);
if (dataValue != entry.getValue().get()) {
NetworkTablesValue newValue = new NetworkTablesValue(dataValue, NetworkTablesValueType.determineType(dataValue));
entry.setValue(newValue);
entry.update(newValue);
m_publisherUIDSMap.replace((int) topicID, entry);
entry.callListenersOfEventType(NetworkTablesEvent.kTopicUpdated, entry, newValue);
}
Expand Down

0 comments on commit e4fbaf6

Please sign in to comment.