Skip to content

can't handle errors (app crash) when using packetSerial and usb disconnects (Windows/0.9.8) #15

@moebiussurfing

Description

@moebiussurfing

hey @bakercp ,
I used the addon and is working really fine! (Windows 10, OF 0.9.8 with ofxSerial master branch).

But when using the packetSerial mode / example, the OF app crashes when disconnected the USB cable. (example_packet_serial and example_SLIPPacketSerial)

I used the other examples templates without packetSerial, and when the cable is disconected the OF app do not crashes. Btw I used to reconnect the serial when the cable is plugged again, and the OF app contiues working fine.

I would like to handle this errors and avoid this crash, because usually the app window can't be closed, and I have to reboot the machine to get it working again.
(I would like to use the packetSerial arduino library, so I don't have to handle the start/finish bytes by hand...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions