MobiFlight-Connector icon indicating copy to clipboard operation
MobiFlight-Connector copied to clipboard

Values are not displayed on LCD screen correctly

Open JaimeLeon2 opened this issue 2 years ago • 0 comments

Describe the bug When writing text values to an LCD screen, if the values contain a placeholder character, this causes Mobiflight to substitute these characters and display incorrectly.

Steps To Reproduce Steps to reproduce the behavior:

  1. Create an LCD display config with a format using placeholders a and b. Example aaaa bbbb
  2. Assign run time values to these placeholders 'abcd' and '1234' using separate output configs and Compare tab.

Expected behavior When in Run mode, display should display the run time content regardless that the values contain placeholder characters. So display should show abcd 1234.

Actual behavior Mobiflight replaces the placeholder character in the value showing instead a1cd 234

Details

  • MobiFlight Version: 9.4.0.4
  • FlightSim: irrelevant
  • AddOn: irrelevant

Additional context Placeholder replacement should use the original format supplied by the user to search for placeholder characters and write them to the same position in the screen buffer. This way, run time values will not affect the placeholder substitution routine.

JaimeLeon2 avatar Aug 12 '22 13:08 JaimeLeon2