Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fix: Change request sync timer to 10ms to deal with package loss
Browse files Browse the repository at this point in the history
  • Loading branch information
tordnat committed Mar 12, 2024
1 parent 8cc3afe commit f863ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requestSync/requestSync.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func Sync(elevatorSystemFromFSM chan elevator.ElevatorState, elevatorId string,
case <-timer.C: //Timer reset, send new state update
msgCounter += 1
networkTransmitter <- StateMsg{elevatorId, msgCounter, elevatorSystems[elevatorId], SyncOrderSystemToOrderSystem(elevatorId, syncOrderSystem)}
timer.Reset(time.Millisecond * 50)
timer.Reset(time.Millisecond * 10)
}
}
}
Expand Down

0 comments on commit f863ac4

Please sign in to comment.