Minor fixes

This commit is contained in:
Sacha Weatherstone
2022-07-31 16:09:42 +10:00
parent d7149ef02b
commit 48838f767f
6 changed files with 354 additions and 247 deletions
+2 -14
View File
@@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { IsBoolean, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/meshtasticjs";
export class TelemetryValidation
implements Protobuf.ModuleConfig_TelemetryConfig
@@ -17,18 +17,6 @@ export class TelemetryValidation
@IsBoolean()
environmentScreenEnabled: boolean;
@IsInt()
environmentReadErrorCountThreshold: number;
@IsInt()
environmentRecoveryInterval: number;
@IsBoolean()
environmentDisplayFahrenheit: boolean;
@IsEnum(Protobuf.TelemetrySensorType)
environmentSensorType: Protobuf.TelemetrySensorType;
@IsInt()
environmentSensorPin: number;
}