mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Remove trailing white-space
This commit is contained in:
@@ -173,7 +173,7 @@ bool FTDI::FTDIContext::closeDevice() {
|
||||
return true;
|
||||
|
||||
int ret = ftdi_usb_close(context);
|
||||
if(ret != 0)
|
||||
if(ret != 0)
|
||||
return false;
|
||||
|
||||
deviceOpen = false;
|
||||
|
||||
@@ -92,7 +92,7 @@ std::vector<neodevice_t> STM32::FindByProduct(int product) {
|
||||
/* This directory will have directories (links) for all devices using the cdc_acm driver (as STM32 devices do)
|
||||
* There will also be other files and directories providing information about the driver in here. We want to ignore them.
|
||||
* Devices will be named like "7-2:1.0" where 7 is the enumeration for the USB controller, 2 is the device enumeration on
|
||||
* that specific controller (will change if the device is unplugged and replugged), 1 is the device itself and 0 is
|
||||
* that specific controller (will change if the device is unplugged and replugged), 1 is the device itself and 0 is
|
||||
* enumeration for different services provided by the device. We're looking for the service that provides TTY.
|
||||
* For now we find the directories with a digit for the first character, these are likely to be our USB devices.
|
||||
*/
|
||||
|
||||
@@ -9,7 +9,7 @@ const PCAPDLL& PCAPDLL::getInstance()
|
||||
}
|
||||
|
||||
PCAPDLL::~PCAPDLL()
|
||||
{
|
||||
{
|
||||
closeDLL();
|
||||
}
|
||||
|
||||
@@ -20,12 +20,12 @@ void PCAPDLL::closeDLL()
|
||||
dll = nullptr;
|
||||
}
|
||||
|
||||
bool PCAPDLL::ok() const
|
||||
{
|
||||
return dll != nullptr;
|
||||
bool PCAPDLL::ok() const
|
||||
{
|
||||
return dll != nullptr;
|
||||
}
|
||||
|
||||
PCAPDLL::PCAPDLL()
|
||||
PCAPDLL::PCAPDLL()
|
||||
{
|
||||
#ifdef NPCAP
|
||||
BOOL(WINAPI * SetDllDirectory)(LPCTSTR);
|
||||
@@ -64,10 +64,10 @@ PCAPDLL::PCAPDLL()
|
||||
if(findalldevs_ex == NULL || open == NULL ||
|
||||
freealldevs == NULL || close == NULL ||
|
||||
stats == NULL || next_ex == NULL ||
|
||||
sendpacket == NULL ||
|
||||
sendpacket == NULL ||
|
||||
sendqueue_alloc == NULL ||
|
||||
sendqueue_queue == NULL || sendqueue_destroy == NULL ||
|
||||
sendqueue_transmit == NULL ||
|
||||
sendqueue_transmit == NULL ||
|
||||
datalink == NULL ||
|
||||
createsrcstr == NULL || setbuff == NULL) {
|
||||
closeDLL();
|
||||
|
||||
Reference in New Issue
Block a user