Thank you Peter. So it's not a bug in the libserialport library than. I
will do just that.
I wanted to say I think it's awesome that this library exists. Not everyone
knows C++ (there's a few C++ libraries out there) and although serial ports are
getting harder and harder to find on modern systems, there's still devices that
use it. Two out of the three major devices I bought within the last 6 months
have serial ports on them. One is a Rigol DP832 Programmable power supply,
one is a Weller WHP-3000 Preheater. The one device that doesn't is a Weller
WX2 Digital soldering station. Even though the Weller WX2 soldering station
doesn't have a 9-pin D-Sub, it has a telephone jack (I think this is RJ-12?)
and they make an adapter that goes from that to serial so it can be hooked up
the preheater. Serial is still very much alive.
With that being said, I just wanted to thank you guys for all the work you guys
do! Thanks!
From: Peter Stuge <[email protected]>
To: [email protected]
Sent: Saturday, August 29, 2015 7:13 AM
Subject: Re: [sigrok-devel] A question or two about libserialport.
Nacho Man wrote:
> if no serial ports are hooked up to the system, the code below
> crashes the program.
>
> I wonder if there's a way to prevent that.
Check the return code of sp_list_ports(). You have to study and
understand every single line of the program before you can use it.
//Peter
------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel
------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel