Use netcomm function to get target class rather then hardcoded (#2391)

It reports the correct value now, and helps for future proofing
This commit is contained in:
Thad House
2020-03-14 22:04:12 -07:00
committed by GitHub
parent 6cf89aa0f3
commit 7b7f44d937

View File

@@ -390,9 +390,8 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
setNewDataSem(nullptr);
});
// image 4; Fixes errors caused by multiple processes. Talk to NI about this
nFPGA::nRoboRIO_FPGANamespace::g_currentTargetClass =
nLoadOut::kTargetClass_RoboRIO;
nLoadOut::getTargetClass();
int32_t status = 0;
global.reset(tGlobal::create(&status));