Fix manual positions

This commit is contained in:
Sacha Weatherstone committed 2022-10-29 22:36:05 +10:00
1 parent 8538ba4f6a
commit 5c68c552e2
3 files changed
+46 -25

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
import { IsBoolean, IsInt } from "class-validator";
import { IsBoolean, IsInt, IsNumber } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
@@ -25,12 +25,12 @@ export class PositionValidation implements Protobuf.Config_PositionConfig {
positionFlags: number;
// fixed position fields
@IsInt()
@IsNumber()
fixedAlt: number;
@IsInt()
@IsNumber()
fixedLat: number;
@IsInt()
@IsNumber()
fixedLng: number;
}