Set default ramp number to -1 to allow the use of 0 as a real ramp number
This commit is contained in:
parent
eadeedcc3a
commit
b30a46e3bc
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ func (r *RouteListEntry) SetCopiesInRoute(copiesInRoute int) {
|
|||
}
|
||||
|
||||
func (r *RouteListEntry) RampNumber() string {
|
||||
if r.rampNumber == 0 {
|
||||
if r.rampNumber == -1 {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("+25%02d", r.rampNumber)
|
||||
|
@ -57,6 +57,7 @@ func NewRouteListEntry() *RouteListEntry {
|
|||
messageStart: "2401",
|
||||
messageEnd: "!",
|
||||
},
|
||||
rampNumber: -1,
|
||||
}
|
||||
return &rl
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue