[sim] Fix WS blank device messages (e.g. DriverStation)

This commit is contained in:
Peter Johnson
2020-08-31 21:58:26 -07:00
parent 7d6f09f5c7
commit 63487dca76
3 changed files with 54 additions and 8 deletions

View File

@@ -179,8 +179,10 @@ void HALSimWS::OnNetValueChanged(const wpi::json& msg) {
wpi::SmallString<64> key;
key.append(type);
key.append("/");
key.append(device);
if (!device.empty()) {
key.append("/");
key.append(device);
}
auto provider = m_providers.Get(key.str());
if (provider) {