]> sigrok.org Git - libserialport.git/commit
Return proper type when sp_get_port_transport() fails
authorWolfram Sang <redacted>
Sun, 5 Apr 2020 21:24:50 +0000 (23:24 +0200)
committerWolfram Sang <redacted>
Mon, 4 May 2020 20:05:00 +0000 (22:05 +0200)
commit086a4181459ff5723d71a1604ddef058030155dd
tree2e163f396e48180e08dd8d05b2fcca4960d10385
parentffbfc5c76ba8100d21d0141478a6c0d761ecfb2f
Return proper type when sp_get_port_transport() fails

The above function must always return an 'enum sp_transport'. So, return
NATIVE if no port is present because its effective meaning within the
API is "you shouldn't call any transport-specific functions for this
port handle".

Fixes bug #1531.

Signed-off-by: Wolfram Sang <redacted>
serialport.c