mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[ntcore] Change Java event mask to EnumSet (#4564)
Also convert NetworkTableInstance.getNetworkMode() to return EnumSet.
This commit is contained in:
@@ -54,7 +54,7 @@ class PreferencesTest {
|
||||
m_inst.startServer(filepath.toString(), "", 0, 0);
|
||||
try {
|
||||
int count = 0;
|
||||
while ((m_inst.getNetworkMode() & NetworkTableInstance.kNetModeStarting) != 0) {
|
||||
while (m_inst.getNetworkMode().contains(NetworkTableInstance.NetworkMode.kStarting)) {
|
||||
Thread.sleep(100);
|
||||
count++;
|
||||
if (count > 30) {
|
||||
|
||||
Reference in New Issue
Block a user