mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[wpilib] Fix DS mode thread event being manual reset accidentally (#4818)
These need to be automatic reset.
This commit is contained in:
@@ -39,7 +39,7 @@ void DriverStationModeThread::InTest(bool entering) {
|
||||
}
|
||||
|
||||
void DriverStationModeThread::Run() {
|
||||
wpi::Event event{true, false};
|
||||
wpi::Event event{false, false};
|
||||
HAL_ProvideNewDataEventHandle(event.GetHandle());
|
||||
|
||||
while (m_keepAlive.load()) {
|
||||
|
||||
@@ -26,7 +26,7 @@ void Robot::StartCompetition() {
|
||||
|
||||
frc::internal::DriverStationModeThread modeThread;
|
||||
|
||||
wpi::Event event{true, false};
|
||||
wpi::Event event{false, false};
|
||||
frc::DriverStation::ProvideRefreshedDataEventHandle(event.GetHandle());
|
||||
|
||||
// Tell the DS that the robot is ready to be enabled
|
||||
|
||||
@@ -29,7 +29,7 @@ public class DriverStationModeThread implements AutoCloseable {
|
||||
}
|
||||
|
||||
private void run() {
|
||||
int handle = WPIUtilJNI.createEvent(true, false);
|
||||
int handle = WPIUtilJNI.createEvent(false, false);
|
||||
DriverStationJNI.provideNewDataEventHandle(handle);
|
||||
|
||||
while (m_keepAlive.get()) {
|
||||
|
||||
Reference in New Issue
Block a user