Skip to content

Commit

Permalink
Corrected message for MaxValue<numericLowerBound (#937) (#938)
Browse files Browse the repository at this point in the history
Co-authored-by: Andi <[email protected]>
  • Loading branch information
thoukydides and Supereg authored Apr 13, 2022
1 parent b1df0a3 commit f78c2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Characteristic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f78c2a5

Please sign in to comment.