* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <libserialport.h>
+#include "protocol.h"
#define SERIALCOMM "115200/8n1"
if (!conn)
return NULL;
- if (serialcomm == NULL)
+ if (!serialcomm)
serialcomm = SERIALCOMM;
serial = sr_serial_dev_inst_new(conn, serialcomm);