Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] plugin doesen't recognize "min_char_count" parameter #107

Closed
CyberGuerro opened this issue Jun 29, 2024 · 3 comments · Fixed by #108
Closed

[BUG] plugin doesen't recognize "min_char_count" parameter #107

CyberGuerro opened this issue Jun 29, 2024 · 3 comments · Fixed by #108
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@CyberGuerro
Copy link

As in the Title, it seems that plugin doesen't recognize the parameter "min_char_count".
Here an extract from config file:

[multi_display:id="RADIO_DISPLAY_ACTIVE_DOWN"]
line="on_select:SW_DOWN_COM1,dataref:sim/cockpit/radios/com1_freq_hz,dot_position:2"
line="on_select:SW_DOWN_COM2,dataref:sim/cockpit/radios/com2_freq_hz,dot_position:2"
line="on_select:SW_DOWN_NAV1,dataref:sim/cockpit/radios/nav1_freq_hz,dot_position:2"
line="on_select:SW_DOWN_NAV2,dataref:sim/cockpit/radios/nav2_freq_hz,dot_position:2"
line="on_select:SW_DOWN_ADF,dataref:sim/cockpit/radios/adf1_freq_hz"
line="on_select:SW_DOWN_DME,dataref:sim/cockpit/radios/nav1_dme_dist_m"
line="on_select:SW_DOWN_IDT,dataref:sim/cockpit/radios/transponder_code,min_char_count:4"

and error returned:

XPanel [4709] [ERROR]:parser: invalid syntax (section starts at line: 200): on_select:SW_DOWN_IDT,dataref:sim/cockpit/radios/transponder_code,min_char_count:4
XPanel [4709] [ERROR]:parser: error while processing key: line
XPanel [4714] [ERROR]:error parsing config file
XPanel [4714] [ERROR]:error during plugin init and start
@norberttak
Copy link
Owner

The correct parameter name is minimum_digit_number
It's an error in my documentation what mentions the min_char_count. I need to fix it. Sorry for the misleading doc.

@norberttak norberttak self-assigned this Jul 1, 2024
@norberttak norberttak added the documentation Improvements or additions to documentation label Jul 1, 2024
@norberttak norberttak added this to the v1.10 milestone Jul 1, 2024
@norberttak norberttak linked a pull request Jul 1, 2024 that will close this issue
@norberttak
Copy link
Owner

PR for the documentation fix: #108

@CyberGuerro
Copy link
Author

Ok, corrected and now workd as expected.
THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants