mirror of
https://github.com/pine64/blisp.git
synced 2026-09-18 18:31:29 +00:00
Fix compiler warnings: enum-conversion
sp_* functions from libserialport return `enum sp_return`, not `blisp_return_t`.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ blisp_return_t blisp_device_init(struct blisp_device* device,
|
|||||||
|
|
||||||
blisp_return_t blisp_device_open(struct blisp_device* device,
|
blisp_return_t blisp_device_open(struct blisp_device* device,
|
||||||
const char* port_name) {
|
const char* port_name) {
|
||||||
blisp_return_t ret;
|
enum sp_return ret;
|
||||||
struct sp_port* serial_port = NULL;
|
struct sp_port* serial_port = NULL;
|
||||||
|
|
||||||
if (port_name != NULL) {
|
if (port_name != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user