Initial 1.3.x rework
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class PowerValidation implements Protobuf.Config_PowerConfig {
|
||||
@IsEnum(Protobuf.Config_PowerConfig_ChargeCurrent)
|
||||
chargeCurrent: Protobuf.Config_PowerConfig_ChargeCurrent;
|
||||
|
||||
@IsBoolean()
|
||||
isPowerSaving: boolean;
|
||||
|
||||
@IsInt()
|
||||
onBatteryShutdownAfterSecs: number;
|
||||
|
||||
@IsInt()
|
||||
adcMultiplierOverride: number;
|
||||
|
||||
@IsInt()
|
||||
waitBluetoothSecs: number;
|
||||
|
||||
@IsInt()
|
||||
meshSdsTimeoutSecs: number;
|
||||
|
||||
@IsInt()
|
||||
sdsSecs: number;
|
||||
|
||||
@IsInt()
|
||||
lsSecs: number;
|
||||
|
||||
@IsInt()
|
||||
minWakeSecs: number;
|
||||
}
|
||||
Reference in New Issue
Block a user