Hi,
This issue lead to a complicated question here:
https://stackoverflow.com/questions/73210048/how-can-a-function-change-the-original-variable-when-it-is-passed-as-value-argu/73266886#73266886
Now I have provided a patch here:
https://github.com/desrod/pilot-link/issues/7
-Ulf