Not connecting to Chameleon any more
Vrumfondel opened this issue · 7 comments
Somthing got broken in establishing the connection;
On 1st look it seems the GUI tries to connect to the first available COM-Port, no matter what this is ..
Not really, it will try getting which serial ports is available, then it tries to identify if the current port has a vid/pid connected to a chameleon. if not, then loop to next available serial port.
See method https://github.com/iceman1001/ChameleonMini-rebootedGUI/blob/master/ChameleonMiniGUI/FrmMain.cs#L1207
Im currently debugging this.
Currently it seems pb_device.Image doesn't like to load warning.ico - which would allign that in that routine there is an exception thrown regarding an impossible typecast .....
Which meast searchign for the chameleon port stops the hard way after the 1st found non-chameleon ...
Bugger, We need a image for "Unknown device" ... Can't show RevE or RevG....
No question about having a seperate image there, I just say that the current image-type seems to be the wrong one ...
Confirmed: An icon can not be casted into an bitmap ....
Converting the .ico to an png and using this as ressource works again ...
PR?
Will come in ~ 2hrs ...