OpenBCI_GUI icon indicating copy to clipboard operation
OpenBCI_GUI copied to clipboard

Saving wrong networking settings in UserSettings.json

Open yoshi-sheep opened this issue 1 year ago • 1 comments

Problem

When I save networking settings, wrong protocol is saved in the UserSettings.json. For example, if I save the settings while selecting UDP, GUI saves Serial protocol settings instead. I checked the code and found out that swith statements in SessionSettings class does not corresponde to the protocols variable in W_Networking class.

The order of the protocol is different in those classes.

W_Networking: "UDP", "LSL", "OSC", "Serial" SessionSettings: "Serial", "LSL", "UDP", "OSC"

I think you just forgot to change the order in SessionSettings class when you updated networking protocol dropdown order in Commit c94e160.

Operating System and Version

Windows 10

GUI Version

v6.0.0-beta.1

Are you running the downloaded app or from Processing/VSCode?

Both app and VSCode

Type of OpenBCI Board

Ganglion

yoshi-sheep avatar Dec 17 '24 08:12 yoshi-sheep

Fixed with https://github.com/OpenBCI/OpenBCI_GUI/pull/1239

retiutut avatar Mar 31 '25 19:03 retiutut