From bbc29d05614cb80681b9daee7b8b628cbf97ef3f Mon Sep 17 00:00:00 2001 From: Norbert Takacs Date: Mon, 1 Jul 2024 06:31:41 +0200 Subject: [PATCH] Doc: fix wrong parameter name The correct parameter name is minimum_digit_number. Signed-off-by: Norbert Takacs --- doc/documentation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/documentation.md b/doc/documentation.md index 81514d7..f744054 100644 --- a/doc/documentation.md +++ b/doc/documentation.md @@ -502,15 +502,15 @@ The display value can be either from a dataref or from a LUA function or it can [multi_display:id="MULTI_DISPLAY_UP", blank_leading_zeros="no"] ``` -*Minimum character number*: In case of ```blank_leading_zeros="yes"``` is active, we can set the minimum character number for each line. It will stop removing of leading zeros when the minimum character count has been reached(set the ```min_char_count```): +*Minimum character number*: In case of ```blank_leading_zeros="yes"``` is active, we can set the minimum character number for each line. It will stop removing of leading zeros when the minimum character count has been reached(set the ```minimum_digit_number```): ``` [multi_display:id="MULTI_DISPLAY_UP"] -line="on_select:SW_ALT,dataref:sim/custom/gauges/compas/pkp_helper_course_L,min_char_count:2" +line="on_select:SW_ALT,dataref:sim/custom/gauges/compas/pkp_helper_course_L,minimum_digit_number:2" ``` The below table contains some examples of different options. We suppose the display is a 5 character wide, BCD encoded display: -| value | blank_leading_zeros="no" | blank_leading_zeros="yes"
min_char_count:2 | blank_leading_zeros="yes"
min_char_count:1 | +| value | blank_leading_zeros="no" | blank_leading_zeros="yes"
minimum_digit_number:2 | blank_leading_zeros="yes"
minimum_digit_number:1 | | ----- | ------------------------ | --------------------------------------------- | --------------------------------------------- | | 100 | 00100 | 100 | 100 | | 1500 | 01500 | 1500 | 1500 |