mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
GetInstance() is required to start the event listener that creates the network table entries. This is a C++ only change; Java uses static's and thus doesn't need this. The right fix is to implement cscore's AddListener() immediate notification, but that's much too invasive of a change to do this year. This fixes the common use cases, but doesn't fix all cases, as e.g. creating a UsbCamera manually before calling any CameraServer functions will still have the issue, but there's an easy workaround--call CameraServer::SetSize() prior to creating any cameras.