From f78c2a53581bb1d8782d32cd186e8f33f64f9ef1 Mon Sep 17 00:00:00 2001 From: Alexander Thoukydides Date: Wed, 13 Apr 2022 16:49:28 +0100 Subject: [PATCH] Corrected message for MaxValue --- src/lib/Characteristic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Characteristic.ts b/src/lib/Characteristic.ts index f86eb9dc6..630269cf5 100644 --- a/src/lib/Characteristic.ts +++ b/src/lib/Characteristic.ts @@ -1134,7 +1134,7 @@ export class Characteristic extends EventEmitter { } else if (props.maxValue < numericLowerBound(this.props.format)) { this.characteristicWarning( "Characteristic Property 'maxValue' was set to " + props.maxValue + ", but for numeric format " + - this.props.format + " minimum possible is " + numericUpperBound(this.props.format), + this.props.format + " minimum possible is " + numericLowerBound(this.props.format), CharacteristicWarningType.ERROR_MESSAGE, ); props.maxValue = numericUpperBound(this.props.format);