fix dgpsid validation

This commit is contained in:
bvn13 2022-09-29 15:31:09 +03:00
parent fa6025a7fc
commit c8c88e63d7

View File

@ -158,7 +158,7 @@ class WptType(
require(magvar == null || magvar in 0.0..360.0) {
"magvar must be degree in (0)..(360) in Double"
}
require(dgpsid in 0..1023) {
require(dgpsid == null || dgpsid in 0..1023) {
"dgpsid must be in 0..1023"
}
}