Update i/o functions to support GPIO(N) port closure

pull/191/head
Bill Somerville 2020-01-26 12:23:42 +00:00
rodzic 376b328ecb
commit 5edceddcea
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D864B06D1E81618F
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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;