Skip to content

Commit

Permalink
Merge pull request #207 from nojronatron/155-bugfix-adc-mult-override
Browse files Browse the repository at this point in the history
change validation type to IsNumber
  • Loading branch information
thebentern authored Jun 15, 2024
2 parents af6a418 + 5f6485d commit 37ff9cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/config/power.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Message } from "@bufbuild/protobuf";
import type { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsInt, Max, Min } from "class-validator";
import { IsBoolean, IsInt, IsNumber, Max, Min } from "class-validator";

export class PowerValidation
implements Omit<Protobuf.Config.Config_PowerConfig, keyof Message>
Expand All @@ -11,7 +11,7 @@ export class PowerValidation
@IsInt()
onBatteryShutdownAfterSecs: number;

@IsInt()
@IsNumber()
@Min(2)
@Max(4)
adcMultiplierOverride: number;
Expand Down

0 comments on commit 37ff9cb

Please sign in to comment.