kopia lustrzana https://github.com/Hamlib/Hamlib
Update i/o functions to support GPIO(N) port closure
rodzic
376b328ecb
commit
5edceddcea
|
@ -53,6 +53,7 @@
|
|||
#include "usb_port.h"
|
||||
#include "network.h"
|
||||
#include "cm108.h"
|
||||
#include "gpio.h"
|
||||
|
||||
/**
|
||||
* \brief Open a hamlib_port based on its rig port type
|
||||
|
@ -209,6 +210,11 @@ int HAMLIB_API port_close(hamlib_port_t *p, rig_port_t port_type)
|
|||
ret = cm108_close(p);
|
||||
break;
|
||||
|
||||
case RIG_PORT_GPIO:
|
||||
case RIG_PORT_GPION:
|
||||
ret = gpio_close(p);
|
||||
break;
|
||||
|
||||
case RIG_PORT_USB:
|
||||
ret = usb_port_close(p);
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue