Set default ramp number to -1 to allow the use of 0 as a real ramp number

This commit is contained in:
Oliver Jakoubek 2020-05-29 14:22:45 +02:00
parent eadeedcc3a
commit b30a46e3bc

View file

@ -22,7 +22,7 @@ func (r *RouteListEntry) SetCopiesInRoute(copiesInRoute int) {
} }
func (r *RouteListEntry) RampNumber() string { func (r *RouteListEntry) RampNumber() string {
if r.rampNumber == 0 { if r.rampNumber == -1 {
return "" return ""
} }
return fmt.Sprintf("+25%02d", r.rampNumber) return fmt.Sprintf("+25%02d", r.rampNumber)
@ -57,6 +57,7 @@ func NewRouteListEntry() *RouteListEntry {
messageStart: "2401", messageStart: "2401",
messageEnd: "!", messageEnd: "!",
}, },
rampNumber: -1,
} }
return &rl return &rl
} }