Skip to content

Commit

Permalink
+ SafetyLogic logging bug fixed: default oldOccupancyValue will be NU…
Browse files Browse the repository at this point in the history
…LL if it was null while logging.
  • Loading branch information
benedekh committed Oct 10, 2017
1 parent 7b175ca commit 81e94d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ class TrainMovementEstimator implements ISegmentOccupancyChangeListener, INotifi
}

private def print(SegmentOccupancy value) {
if(value == SegmentOccupancy.FREE) 'FREE' else 'OCCUPIED'
switch(value){
case FREE: 'FREE'
case OCCUPIED: 'OCCUPIED'
default: 'NULL'
}
}

def synchronized checkFreedSections() {
Expand Down

0 comments on commit 81e94d2

Please sign in to comment.