SmartDashboard override .name entry in putData(String, Sendable) (#866)

Fixes #865
This commit is contained in:
Sam Carlberg
2018-01-02 14:39:16 -08:00
committed by Peter Johnson
parent 0ef9803363
commit ee33296e1f
2 changed files with 6 additions and 2 deletions

View File

@@ -67,10 +67,12 @@ public class SmartDashboard {
}
sddata = new Data(data);
tablesToData.put(key, sddata);
sddata.m_builder.setTable(table.getSubTable(key));
NetworkTable dataTable = table.getSubTable(key);
sddata.m_builder.setTable(dataTable);
data.initSendable(sddata.m_builder);
sddata.m_builder.updateTable();
sddata.m_builder.startListeners();
dataTable.getEntry(".name").setString(key);
}
}