-
Notifications
You must be signed in to change notification settings - Fork 18
Description
While editing a governor profile to adjust the headspeed, I saved the setting by pressing SYS and selecting "Save" on the radio screen.
I accidentally pressed the SYS button again and decided to select Save again as I wasn't sure if the value saved. This time, I received a script syntax error.
As another test, I restarted the radio, and viewed the "Gyro Filters" page in the Rotorflight 2 app. This time, I didn't even change a value, just tried to Save twice by pressing SYS, selecting Save, SYS again, then Save again. I still received the script syntax error.
The first script syntax error was:
RF2/MSP/mspHelper.lua:39: bad argument #1 to 'rshift' (number expected, got nil)
On another occasion, I received a similar error (different line number reported):
RF2/MSP/mspHelper.lua:34: bad argument #1 to 'band' (number expected, got nil)
I noticed these correspond to calls in functions writeU16 and writeU8. Unfortunately, I'm not sure which code is calling those functions passing the nil argument value.
Additional Details:
I initially was using the latest release (2.2.1) but decided to try snapshot-2.3.0-20251111. While 2.2.1 didn't show script syntax error file or line numbers, I was happy to see the snapshot included this information.
My radio is the RadioMaster TX15 Max, connected to a RadioMaster Nexus-XR. I'm using 5.25M baudrate, 500Hz packet rate, 1:32 telem ratio, wide switch mode.